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
183 views

Applescript System Events Keystroke broken after 10.9.4

It seems like the recent Mavericks update has broken the keystroke command in applescript -- whenever my script reaches that point, it freezes. (I currently have ~20 zombie osascript processes...) ...
0
votes
1answer
65 views

How to download images from an xml feed using terminal?

How can I download png images from an xml feed that looks the following way? <ListBucketResult xmlns="http://url1.com"> <Name>imagesToUse</Name> <Prefix/> <Marker/> ...
0
votes
0answers
91 views

Automator sequential renaming for one file at a time

I have found many tutorials on how to rename some files using a "batch-renaming" type of workflow, but I have a different issue. I'm moving files one at a time into a folder, not all at once, so the ...
0
votes
1answer
182 views

Applescript Command as Specified User to Delete All Files in a Particular Folder

I am looking at using the POSIX path to delete the contents of a particular folder on users computers but it must be performed as a particular user. I can deploy the script silently from my side ...
0
votes
1answer
312 views

How to locate UI Button for AppleScript using Accessibility Inspector

There are several articles here that address this question, but none offer the help to connect-the-dots. The attached screen shot shot shows Accessibility Inspector for the button in question, which ...
0
votes
0answers
40 views

Tile Terminal Windows using Applescript

How can we use Applescript to tile multiple Terminal windows in the screen? Like in a arrangement of 3 cols by 2 rows. The following code simply overlaps all 6 windows. tell application "Terminal" ...
0
votes
0answers
47 views

AppleScript - Auto Press Keys

Using the AppleScript editor, I want pressing the "6" key in Google Chrome to also press the keys "1", "2", "3", "4", and "5". What's the easiest way to do this? I expect that there are some similar ...
0
votes
0answers
128 views

Apple script in Error - “Microsoft Outlook gon an error:An error has occure.”

i try to export all mail from outlook using applescript but nested folder not export and display error: Apple script in Error - "Microsoft Outlook gon an error:An error has occure." number -2700 ...
0
votes
0answers
20 views

Word extension and AppleScript on Mavericks

I'm writing a scientific article and I would like to use the IUCr templates and tools, available via this program. Once installed, the program should let you select the journal you want to address and ...
0
votes
1answer
137 views

How do I make automator only perform an operation on one file at a time?

I have with 'Folder Action' that automatically runs a Photoshop script on each file that is added to the folder. The folder action has two steps: Open this file with Adobe Photoshop CC Run the ...
0
votes
0answers
34 views

microsoft Outlook got an error : can't get every folder

i try to export all mail from outlook 2011 mac using apple script Error "miscrosoft outlook got an eroor : can't get every folder." number -1728 from every folder code : tell application ...
0
votes
0answers
161 views

how to exporting outlook 2011 calendar event using applescript

i try to exporting selected outlook calendar event using apple script but get an error: error : microsoft Outlook got an error : can't make vevent of calendar event id 5680 into type specifier ...
0
votes
0answers
24 views

Login Mac Using LanRev and AppleScript

Is there a way that I can execute a script on selected Macs with LanRev (Absolute Manage) installed when they are at the login screen to automate the logon process using AppleScript? Currently I have ...
0
votes
0answers
59 views

Making .py files open in Spyder

I'd like to have double-clicking on a .py file on my Mac open with file in Spyder. There doesn't seem to be support for this built into Spyder (see here, here, and here). But is the effect achievable ...
0
votes
1answer
168 views

Export Folders as MBOX Files Using a Script

You can manually drag your folders to desktop to create an MBOX file, but need to create using AppleScript. please help me. thanks
0
votes
1answer
142 views

Validating AppleScript input text

How would I validate this pattern: 2 digits followed by last name, basically any length of letters. Apple script does not use regular expressions, correct? I need to validate user input and all ...
0
votes
1answer
17 views

Applescript mail errorhandler

I have a script to send an email, but I'd like to detect if no email account is setup, and to do something else. Is there a way to detect or trap for this condition? Thanks. tell application ...
0
votes
0answers
36 views

Is it possible to automate the key press of a key (such as the function key) with AppleScript Editor

Is it possible to automate the key press of a key (such as the function key) I'd like to automate the function key so it stays depressed. My MacBook randomly shuts down unless I keep the key ...
0
votes
1answer
294 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
144 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
1answer
73 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? ...
0
votes
0answers
22 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 ...
0
votes
0answers
91 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
52 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 ...
0
votes
0answers
188 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 ...
0
votes
1answer
136 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 ...
0
votes
0answers
101 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 ...
0
votes
0answers
90 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 ...
0
votes
1answer
238 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 ...
0
votes
0answers
67 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
43 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
0answers
38 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
1answer
264 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
2answers
53 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 ...
0
votes
0answers
31 views

How to schedule Skype launch with AppleScript only on weekdays?

I need to launch Skype only on work days using AppleScript. How could I do this?
0
votes
0answers
32 views

Error when duplicating to shared drive using AppleScript

I'm trying to get duplicate home folders (desktop, movies, music, home, etc..) to a shared server. I was finally able to get the drive mounted using a concatenation of string and variables. But now ...
0
votes
0answers
39 views

How to get Mail.app raw message in the Automator ? (version 2)

I tried this script and it work great. Thanks But my problem is that the text I receive has = character at the end of each line, resulting in some url to be truncated/separated by this = sign. Is ...
0
votes
1answer
42 views

AppleScript or Automator workflow to clean orphaned files on Kindle

I'm wondering if there's a way to clean orphaned files from a Kindle using AppleScript or Automator. It would basically look for any .sdr folder that doesn't have a matching .mobi or .azw and then ...
0
votes
0answers
239 views

AppleScript shows “Document could not be opened. You don’t have permission.” but file can be opened?

I am getting a "The document [filename] could not be opened. You don't have permission" when attempting to access several files in an AppleScript. However, I can open these files manually without ...
0
votes
0answers
31 views

What scripting framework could work with google translate for a non-programmer?

So I want to create a small workflow that I can integrate into my OS that does this: Translate selected sentence with google translate (fixed languages) and make it automatically get pasted where I ...
0
votes
1answer
126 views

Simulate shift-tab with Automator/AppleScript?

OSX 10.9.1, Late 2013 MBPr I am trying to make a Automator workflow to connect to another machine on my network. How can I do this with Automator? I have it all set up up to the point where I have to ...
0
votes
0answers
256 views

Applescript Display notification with Trigger

I have an applescript written to display a notification in the notification centre when I get a new email in outlook for mac. i.e. display notification mycontent with title mysubject subtitle ...
0
votes
0answers
14 views

How do I Install the xcode command line tools without the confirmation and license prompt? [duplicate]

I ended up answering this myself but I figured I'd throw it up here to document it. xcode-select --install asks if you are sure you want to install the script, then it prompts you to accept a license ...
0
votes
1answer
121 views

Automator rename finder item date and time

I want to use automator to create a project folder with a Automator service, but i like to add the month and year (with two decimals) not the day, month and whole year. want i can creatie is ...
0
votes
1answer
107 views

Export reminders from osx Reminders app programmatically

I need to get reminders list in any form (could parse it later) from Reminders app in osx (10.9.1) I know that i could do it from menu, but i need it programmatically. Perfectly it would be some ...
0
votes
0answers
23 views

Automatically copy PDF.plugin to Chromium.app

I'm using Chromatic.app to update my Chromium.app recently. I'd like to use Chrome.app's PDF.plugin in Chromium.app. Therefore I need to copy PDF.plugin to the following directory: ...
0
votes
1answer
60 views

Using quotes in SublimeText build system command

I'd like to execute a simple AppleScript command as part of a Sublime Text build system. I created a sublime-build file where the command is "cmd": ["osascript", "-e", """tell application "Preview" ...
0
votes
1answer
88 views

Automator application needs to ignore all files that aren't EPS

I've made an application that I drop EPS files on and it makes two copies and renames them and transfers them to SMB shares. But sometimes when I have more than one file selected in other windows, ...
0
votes
0answers
60 views

Change all birthday events to occur yearly in iCal?

I want to make all birthday events in my iCal repeat yearly(some of them were not added with "repeat yearly" set). I am doing them on a event by event basis but that is too painful. Is there a way to ...
0
votes
1answer
125 views

Error with AppleScript - Integer?

I have been making a simple script for my sister, but it does not work. It calls for an integer? I did not specify it in my program, but it calls it anyway...? My Script: activate display dialog ...