AppleScript is a proprietary programming language in Mac OS X to control and exchange data with applications.

learn more… | top users | synonyms (2)

1
vote
1answer
47 views

Script to check Software Version

Hi i'm tryin to write a script to check software version. I want to pass my own variables, which are name of the Application and Version. Here's a copy. It's not working for me currently... i'm a ...
1
vote
1answer
214 views

How to create an apple script that forwards a flagged email

I want to create an apple script that will forward a flagged email to x@mail.asana.com I have tried this script: on run tell application "Mail" repeat with _acct in imap accounts ...
0
votes
3answers
558 views

How Can I Create a Multi-Line Input Dialog using Applescript?

How can I create a multiline text input dialog using Applescript? Creating a single line dialog is simple...
0
votes
0answers
5 views

Applescript Keystroking to two different scripts [on hold]

I am attempting to make a kind of points system. What I want: When X is done add (an amount of) points to one script. But if A is done, add (an amount of) points to a different script. Hmm, that ...
3
votes
1answer
444 views

Hide windows in current desktop (Lion)

I'd like to make a keyboard shortcut that hides all windows on the current desktop, while ignoring windows on other desktops. Is this possible using Applescript?
1
vote
1answer
21 views

need to script connection to telnet and send commands to remote device with no user input

Ok I need some help making a script that will connect to a server and send 2 commands Ideally I would have telnet 192.168.2.230 9993 and once it logs in (no user name or password required - the ...
2
votes
1answer
46 views

Trim filenames in automator w. shell or applescript

Why doesn't this work? (The automator is in swedish but the parts are: get selected finder objects - get folder contents - run shell script) I want to trim the first three characters of the ...
0
votes
0answers
14 views

How to click on an exact element in chrome using apple script?

I know it's website specific, but i'm just having a hard time understanding exactly how the do Javascript function works. For example, say I have this site to vote on and i wanted to run an apple ...
2
votes
1answer
18 views

Possible to automate entering star ratings and play counts for identical/duplicate song in iTunes?

I'm in the process of replacing my low quality <192 kpbs MP3s into either 320 kpbs MP3 or ALAC files in iTunes. Right now my routine is to import the new HQ files to iTunes, go to "Show Duplicate ...
1
vote
1answer
19 views

SpeechRecognitionServer not found in Mavericks with applescript?

I am trying to use an applescript to get speech input from a user and then perform and action. However, the code i'm using was made for osx lion. When I put it into applescript editor, the editor ...
1
vote
1answer
42 views

AppleScript To Manipulate VLC

I want to do a script, that it can launch VLC player, and in VLC player "Open a file", then "Select a folder", then click on "add" then "play" it. I think that Automator can't do this. But ...
3
votes
1answer
599 views

Toggling screensaver password with script

I am using a rather old application called Proximity to trigger applescripts when my phone goes in and out of bluetooth range of my mac. Along with other tasks, I want to secure my laptop when the ...
5
votes
2answers
238 views

“drag n drop” application to convert images to base64 string (for web development)

I'm after an osx program that will convert an image into a base64 string (for web development). Basically replicates this: http://webcodertools.com/imagetobase64converter/Create I suspect there is ...
1
vote
1answer
32 views

Can I give Automator apps a window?

Can I create a window / UI for applications created using Automator? Or is this just not possible with Automator apps? Background: I created an "application" through Automator, and dragged the app ...
3
votes
2answers
131 views

LaunchBar script that returns the path of a folder “dropped” on it

I want to make a LaunchBar script that displays in a dialog the path of a file or folder that's chosen in the first pane and then "dropped" on a script. But I can't make it work. I've got a couple of ...
0
votes
0answers
17 views

Authomatically press a keystroke with Automator/Applescript when a specific application is active

Background to problem: Spotify rolled out a new update, with new dark, high contrast color scheme, which is very tiring for eyes and difficult to read for people with various health issues. Inverting ...
2
votes
1answer
22 views

Running script through launchd with no annoying prompts

I have an applescript that checks my macbook battery and forces hibernation when it reaches a certain level, after displaying a 60 sec countdown. I've successfully set it up to run in the background ...
4
votes
2answers
8k views

How can I configure my computer to run an AppleScript at a specific time? Caveat: without using iCal

Since upgrading to Lion, I have seen a sleight decrease of productivity when it comes to using iCal. As a result, I am trying alternatives such as BusyCal. The application seems great, however I cant ...
1
vote
1answer
67 views

Applescript to import mail with attachments into devonthink that would expand archived files

My workflow is to tag and put all incoming docs from Mail.app into Devonthink. I do this with Applescript. Script is working fine for me with one exception - I do not know how to make it expand .zip ...
1
vote
0answers
25 views

Applescript for Outlook 2011 that moves all messages from a specific folder that match a source account to a different folder

As the Title states "Help with an Applescript for Outlook 2011 that moves all messages from a specific folder that match a source account to a different folder." So, I have a "rule" that moves all ...
2
votes
0answers
14 views

How to maintain focus on app window with AppleScript

I am trying to launch my scanner application using AppleScript. I have it launching the Printer app and I know how to send the keystroke command but when the Printer window opens it does not have ...
1
vote
4answers
2k views

method for using F4 key without press function button in one macbookpro

i'm using a program that uses the F4 key for a shurtcut. it is an important shortcut and i'm heavily using it. every time in my mac book pro for press F4 i have to press also the fn button. is there ...
1
vote
0answers
47 views

How can I permanently force Xerox secure printing?

My clients are printing direct to a network printer (no print server). Xerox have confirmed that the Secure Print Only option is only available in Windows, so I am looking at editing .plists, ...
2
votes
1answer
72 views

Send mail after found new items inside the folder

I am running an applescript application using stay open option. Function of the script is: the applescript will ask for "javascript" to run the below is my code. the functions of the javascript is ...
1
vote
1answer
57 views

Facetime Applescript Edit

Does anyone know a quick way that I could modify the following script (from CornDoggyRob) to automatically maximize the incoming call window and to adjust the orientation? I would love to try this ...
0
votes
1answer
38 views

How to batch combine mkv and srt files to mp4 with ffmpeg

I'm trying to get an applescript to combine .mkv's with .srt's after i added those files to a folder. I've managed to do the automatic conversion from mkv to mp4 and add them to itunes. The only ...
2
votes
1answer
20 views

Is there a way to create a notification in the Notification Center with a clickable link?

I can create a notification in Applescript via display notification "Notification Text" with title "Title goes here" subtitle "subtitle goes here However is there a way when I click on the ...
5
votes
3answers
40 views

AppleScript to show package contents of hidden original of alias

I'm writing an AppleScript that will be run from within Automator, because ultimately I will define a keyboard shortcut to call it as a Service. I don't know any way to have a Service appear in an ...
0
votes
1answer
563 views

copy calendar entries from one calendar to another via apple script throws error

i am trying to copy ical entries from one calendar to another using the following script: tell application "iCal" set localEvents to events of calendar "Privat" set remoteEvents to events of ...
0
votes
1answer
29 views

How do I get osascript to parse backslashes and run this command in a new Terminal window?

Here's a command that works fine when I paste it into the Mac Terminal window: echo -n -e \\033]0\;My Custom Window Title Here\\007 ; ping www.google.com In particular, it sets the Terminal's title ...
0
votes
3answers
786 views

creating script for ical events from properties of address book entries

I want to create a script that creates alarmed events in ical for birthdays of people that I have in my address book. Unfortunately, I am very bad working with applescript. Below is the outline of ...
0
votes
0answers
11 views

Get iTerm session by tty name

I want to run a command within an iTerm2 session like this: tell application "iTerm" tell session id "/dev/ttys020" exec command "ls" end end But I get the following error (with and without ...
1
vote
3answers
910 views

Applescript giving error 1728 when checking if file exists

I'm trying to make compressing a video file using HandBrake easier through applescript and have been basing most of the code off of templates I've found. At this point in the code, the user has ...
1
vote
1answer
39 views

AppleScript/Automate Mail Tasks

I've been trying to help a coworker automate a weekly email compilation he sends out but haven't yet been able to figure out how address a few specific areas...first I'll explain the situation, then ...
1
vote
1answer
15 views

Droplet Applescript Touch

i was trying the last days to get a droplet working, which is changing the time stamp of every dropped .jpg / .tif / .dsc / .cr2 to the actual time or even a few secs earlier in Terminal. Would ...
2
votes
0answers
129 views

enabling/disabling internet sharing with terminal in mac osx 10.9.2

Very much on the line of already existing questions, but not having enough reputation to comment by following existing threads, I can only ask my own, at the risk of duplicating may be, certainly ...
0
votes
0answers
13 views

automator script to import last image in iphone to the mac's desktop and delete it from the iphone

I need a way to easily perform the following: import the last image saved on the camera roll on the iphone (it will always be the same iphone, can be hardcoded on the script) into the desktop ...
0
votes
0answers
12 views

How can I share subroutines between different applescript services

I use applescript to make a bunch of services for advanced hotkeys, like activate Finder, open Go to Folder…, and paste clipboard. There are plenty of usable subroutines available for applescript, ...
0
votes
2answers
33 views

Quick Look a URL via a script (Applescript, Automator, Shell…)?

Lion added the ability to Quick Look a URL in an application (like Mail.app). I would like to use that functionality from a script. Is that possible?
1
vote
1answer
41 views

Adding content via Siri to text files in Dropbox?

Recently, I decided to move a series of lists I keep in the Notes app (Groceries, Shopping, Movies to Watch, Local Bands we follow, Local Restaurants we like, etc.) to a Dropbox folder that I share ...
0
votes
1answer
47 views

Change the current iTunes song's rating after it finishes playing?

I use smart playlists in iTunes. For example: Play only songs rated 4 stars or higher with comments containing "mellow" (I use comments as tags, more or less, so that would be a mellow best-of ...
0
votes
1answer
35 views

How to get a list of application windows only from the current desktop with applescript?

Need to do something like the next tell application "Safari" activate set AllWindows to every window set WinCount to number of items in AllWindows repeat with i from 1 to WinCount ...
0
votes
0answers
19 views

Numbers 3.1: Maintain Link to CSV

Is there a mechanism to maintain a link between a CSV that may change and a Numbers file? I would like to maintain a Numbers file that uses table data from a CSV whose contents will be updated every ...
0
votes
2answers
521 views

Compress files with the output name same as Parent Folder with Automator

I've been searching the internet for a solution to this. I would like to create an Automator workflow that will zip the selected files, name the zip the name of the Parent directory and save that zip ...
8
votes
4answers
13k views

How do I open Google Chrome in Incognito mode by default

Is there any way (using apple script or by using settings on chrome) to open Google Chrome in incognito mode.
0
votes
2answers
26 views

Automate Receipt Filing from Emil

I currently have a workflow setup that when I get a paper receipt I highlight the company name and price in green then scan with my ScanSnap which it then OCR's. Then using Hazel I automate the ...
1
vote
0answers
25 views

Get posix path of .webloc in applescript droplet

If a .webloc is dropped onto the following script, the dialog won't be displayed; instead the url of the webloc is opened in the default browser. on open dropped_webloc display dialog "hey" end ...
4
votes
1answer
78 views

osascript to set secondary desktop background?

I have been using this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd> <plist ...
1
vote
2answers
357 views

How to go to tab 5 in Safari? (AppleScript)

Is there any way to go to tab number 5 in Safari? tell application "Safari" to set current tab of document 1 to 5
17
votes
1answer
22k views

How do I automate a key press in AppleScript?

Is it possible to automate the key press of a key (such as "a" or "<") in Mozilla Firefox, Google Chrome or Safari (in this order)? I'd like to automate the key press of "a" for example in Mozilla ...