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

learn more… | top users | synonyms (2)

0
votes
1answer
66 views

Access application submenus with AppleScript

I am trying to learn to access any menu item within an application with AppleScript. I can orient to the actual menu tab, and then access clickable menu items, but I can't access menu items within ...
0
votes
1answer
76 views

AppleScript to click buttons and close tabs

Im not really familiar with applescript (using C/Python/Pacsal atm). So far did the autoclicker for my WoW ore prospection. I would like to use the script on safari to click the link with name "1st ...
0
votes
2answers
72 views

Script to click app on Menu Bar on Mavericks

I use an application called NoSleep. Technically it is a Kernel Extension. It is used to prevent a Mac (OSX Mavericks) from going to sleep when you close the lid. ...
0
votes
1answer
29 views

Search for a folder using applescript

I am trying to make a folder to go on a server, that people can add photos to and then the script sends them to the correct place, however I'm having trouble with the search part. As you can see ...
0
votes
1answer
50 views

Is it possible to “shut off” battery charging in OSX [duplicate]

Is it possible to "shut off" battery charging in OSX with an application rather then physically. Could this be done with AppleScript (I doubt it) or will need to be obj-c cocoa application? ...
4
votes
2answers
39 views

How to disable shortcut for an Automator script?

A few weeks ago I wrote a short script with the Automator to get familiar with it. I found a website which explained how to set up a primitive script to start the screensaver and define a shortcut to ...
3
votes
1answer
235 views

How can I get my AppleScript code to move files?

Having used Automator to organise files by file extension successfully before, I decided to create an AppleScript application that will save me having to change parameters manually, as Automator ...
1
vote
1answer
44 views

Applescript to fill in Keychain dialog box

I'd like to fill in the Keychain Dialog box with the Name: and Password fields (printer is windows print queue), but after the Print command, the Keychain dialog box opens up, but never responds to ...
1
vote
1answer
147 views

Double click in AppleScript

How do you write the command to carry out a double click with a mouse at a specific location in AppleScript?
0
votes
1answer
71 views

Is there a way to extract contents from AppleScript file without using AppleScript editor?

I have a bunch of applescript files I need to run but some that were running yesterday are not running today. Applescript is showing me this beautiful message. When this message is shown, console ...
3
votes
1answer
84 views

Tell application screen is not zoomed

When using OS X's native zoom, is there any way (perhaps using AppleScript) to fool an application into thinking the screen is not being zoomed? Something like tell application "System Events" to ...
1
vote
0answers
110 views

Automator or Applescript for custom script to download bank statements?

What's the best tool to script to automate downloading statements from my bank and credit card companies' website in each of their statement download area? All banks, credit card companies, and ...
3
votes
2answers
115 views

Use one AppleScript to toggle on and off (1 or 0)

I'm wondering if there's a simple way to use one AppleScript program to turn something on and off. Basically I want it to do this. Check current pmset sms if sms = 0 then do shell script sudo ...
3
votes
3answers
303 views

Mavericks - Tell application “Preview” open PDF - strange permission issue

I have recently moved a large research collection of PDF files, from a Snow Leopard 10.6.8 TimeMachine disk, to my new rMBP (to the internal flash storage). I did this manually, not through the ...
1
vote
0answers
23 views

Pausing workflow until action complete

I have Hazel set up on a media server to automatically add files to specific iTunes playlists based on a text tag in the directory name. Several users will send us individual files or directories ...
2
votes
2answers
59 views

AppleScript - Get the path to an application without opening it

I need to store the path to Chromium to use later in the script, however running set chromium to (POSIX path of (path to application "Chromium")) in AppleScript Editor opens the application. How can I ...
2
votes
1answer
70 views

Binding DualShock 4 button to AppleScript?

I setup a dualshock 4 (PS4) controller to work with my Mac Mini for XBMC, which can play games on emulators like SNES9x. The issue I'm having though, is that when I want to quit the game/emulator that ...
0
votes
1answer
65 views

AppleScript to save active Microsoft Word document IFF there is one

I use this with Keyboard Maestro to automatically save the front-most document in Microsoft Word whenever Word deactivates: tell application "Microsoft Word" if it is running then save ...
0
votes
0answers
21 views

Apple script on network share not working

Hi I would like my apple mini server (mavericks) monitoring a folder on another NAS (running linux). If other users add files I would like it to send an iMessage or email to notify me that a folder is ...
2
votes
0answers
120 views

AppleScript for enabling VPN broken after update to 10.9.3

I've been using an AppleScript for connecting to my office VPN. After updating my macbook to 10.9.3, it fails to execute, and throws an exception Unable to get network preferences (honestly, it is ...
0
votes
1answer
33 views

For each press of spacebar, pass keystroke to app and increment input counter

I would like for each time user press spacebar, for the script to pass keystroke space to a browser (Firefox) to play a game while counting the number of times spacebar was hit. How do you do that ...
0
votes
0answers
53 views

Need Apple Script to redirect work mail - Mail rules don't work

I have to use MS Exchange at work for email, so I have Outlook and Apple Mail set up. I want to use Gmail but POP is disabled for us, so I can't just pop it to gmail. So, I tried setting up a rule in ...
0
votes
0answers
51 views

AppleScript editor cannot save .scpt file

I've created a simple AppleScript .scpt file, using TextEdit. If I now open it with AppleScript editor, I can run it. But when I try to modify and save it, I get the following error: It's ...
0
votes
0answers
34 views

Why don't my volume-control AppleScripts run when called as Services?

I've got three AppleScripts that respectively toggle system mute, increase volume, and decrease volume. (For use with an old keyboard). They work fine when I run them as a workflow in Automator and ...
1
vote
1answer
64 views

How do I add a script to the Service menu?

See "How do I automate this repetitive task?" I'm posting here so I can show some screenshots of the work in progress. I'm very new to both StackExchange and also Automator. Don't yet know my way ...
-1
votes
1answer
65 views

Get (tell) AXScrollArea in Applescript (Or, classes not appearing)

In my AppleScript I need to get the AXScrollArea on the left of Accessibility preferences. My first thought was to try using the AXRoleDescription, "scroll area", but it wouldn't compile. syntax ...
1
vote
1answer
163 views

ffmpeg working from command line in Terminal but not in an Automator shell script!

I have just compiled my own copy of ffmpeg on my system and it's located in the following path: /opt/local/bin/ffmpeg When I run the following command in Terminal.app, it runs smooth: ffmpeg -i ...
1
vote
1answer
68 views

Check FTP status using AppleScript

I have an AppleScript Automator application that, when double-clicked, opens FTP and displays an alert confirming the same. It is working perfectly as expected. However, I am looking to make it a tad ...
3
votes
1answer
128 views

Display IP address in an Automator alert

I am running an Automator script to launch SFTP on my Mac when double-clicked. Here’s the script: do shell script "sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist" with ...
2
votes
2answers
695 views

Passing a password to an Automator application

I have written an Automator application with the following shell script to open an FTP connection on my system: sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist osascript -e 'tell ...
0
votes
1answer
291 views

Running second Google Drive Crashes constantly on OSX Mavericks

I have been trying to get a second instance of Google Drive to run under another user on my MBP running Mavericks. I have been following the instructions here ...
1
vote
0answers
87 views

Get Finder tab-locations with applescript

I know how to get the location of the current finder window, but I would like to be able to also get all locations of open tabs in the current finder window. How do I do this with applescript?
4
votes
2answers
387 views

Automating ffmpeg using Automator Service

I often use ffmpeg off the command line to convert video files into mp4 on my Mac (running Mavericks). Do note, however, that I am NOT re-encoding my videos; am just changing the container from an avi ...
2
votes
1answer
95 views

Is it possible to submit not sandboxed app to the Mac App Store

I have an AppleScript Cocoa application that does a lot of shell scripts like kill or chflags. Is there any way I can try to send it on review to MAS and get it approved? According to Wikipedia: ...
0
votes
1answer
58 views

Why does this AppleScript not run in Outlook?

I would like set up an inbound rule in Outlook to run applescript on certain messages. However the rule fails with the following message: While processing message "Test" (ID 39523), the rule ...
0
votes
0answers
119 views

Adding alarms to a calendar entry using AppleScript in Mavericks causes error

I have following scripts (see bottom) that is meant to open all calendar entries and create alarms for each. This is working fine on 10.8.x. I've been testing the same script on Mavericks and I'm ...
1
vote
0answers
21 views

Different results of running the same AppleScript

The script is: tell application "DEVONthink Pro" activate end tell tell application "System Events" tell process "DEVONthink Pro Office" tell menu bar 1 tell menu bar ...
0
votes
1answer
37 views

How can I locate in iPhoto an image selected in the Finder?

This is essentially the reverse of this question: given that I have selected an image in the Finder, is there an applescript or similar tool which will open iPhoto and highlight this file in the ...
1
vote
2answers
71 views

Applescript to forward email but preserve sender

How can I make an Applescript that Mail.app on my Mac can run? When it encounters a message that is being sent to mac@email.com, I'd like it to redirect it to email@gmail.com, where the "From" field ...
2
votes
5answers
382 views

Ejecting all network drives via Applescript/Automator/Shell?

I use the following script to attempt to eject all disks that aren't internal: tell application "Finder" eject (disks whose ejectable is true) end tell This has the advantage of skipping ...
2
votes
4answers
648 views

How to open a new Terminal tab in current working directory?

I want to create and run a bash function that: cd into a project's directory Open a new tab in Terminal in the same directory Open my dev tools and start dev services Item #2 doesn't work as ...
0
votes
1answer
62 views

I am trying to make an Applescript that launches a different set of apps depending on user input. However, it won't compile. What is wrong with it?

I made a simple AppleScript that launches a different set of apps depending on user input. I am new to AppleScript and it is tweaked from a bunch I found on the internet, modified for my usage. It is ...
2
votes
2answers
120 views

How to reset OS X volume after sleep using launchd?

I'm been trying to write a plist file on which when I return from sleep mode, I always want to make my Mac volume to the minimum amount. However, it looks like the following plist doesn't work, with ...
1
vote
3answers
86 views

Trim first 6 characters from Folder Names [AppleScript]

I've found an AppleScript online which trims the first characters from a FILENAME, however, it does not seem to work on FOLDERS. How could this be modified to rename folder names? set whichFile to ...
1
vote
1answer
886 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
165 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
51 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 ...
1
vote
1answer
100 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
115 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
355 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 ...