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
0answers
149 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
122 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
638 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
1answer
29 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
84 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
80 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
87 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
131 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
39 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
64 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
82 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
41 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
77 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
78 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
264 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
81 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
143 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
1k 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
418 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
108 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
557 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 ...
3
votes
1answer
125 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
68 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
148 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
23 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
47 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
97 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
586 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
971 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
85 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
141 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
106 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
1k 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
285 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
78 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
2answers
145 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
182 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
464 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 ...
1
vote
1answer
46 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 ...
5
votes
3answers
561 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 ...
0
votes
0answers
62 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 ...
1
vote
1answer
123 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
1answer
69 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 ...
2
votes
1answer
87 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
136 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 ...
2
votes
1answer
63 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 ...
1
vote
1answer
215 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
1answer
211 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
248 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, ...