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

learn more… | top users | synonyms (2)

2
votes
1answer
32 views

What is the location of this Application's file?

This application shows in Finder at path (with target): Macintosh HD/Applications/Trans_Helper.app/Contents/MacOS/applet and I have not been able to successfully start it with launchd, using ...
3
votes
2answers
135 views

How to run Say “something” in background in AppleScript

I would like to have AppleScript code like this: row 1 say "some long text here" row 3 When it starts to speak text, it same time continues to row 3. I create my scripts in AppleScript Editor and ...
0
votes
2answers
79 views

Set Alias for Terminal Window in Applescript

After opening multiple terminal windows and running commands in them, it becomes difficult to send another command to a specific terminal window. How can we set an alias for each terminal window so ...
1
vote
2answers
16 views

How to make certain keystoke in AppleScript?

I am trying to make a program that records a live stream for a certain amount of time and then saves it on my desktop. This is what I have so far. TWiT Live Recorder (30 sec version) tell ...
0
votes
0answers
92 views

Keynote export with AppleScript broken in 6.2

I have recently upgraded both osx (to 10.9.4) and Keynote (to 6.2) and found this script, used to export Keynote presentation to HTML, no longer working. The script is simple: #!/usr/bin/osascript on ...
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
48 views

Creating a script that will execute a program and if it exits without crashing, will run it again

I've already asked this question in the UNIx exchange but I was told to ask here also about AppleScripts if the standard shell does not work. I require a script that will open an application. Wait ...
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 ...
1
vote
1answer
39 views

How do I create a scheduled task that deletes files of a certain name everyday?

Our voicemail system sends our messages to us via email as mp3 files. When I download the file, it comes down as "message.mp3", but of course OSX will rename them "Message (x).mp3" when you have more ...
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" ...
1
vote
1answer
238 views

How to Identify Safari Javascript Alert Dialog using AppleScript?

In a particularly 'pesky' website, a dialog box pops up to block (or cover) automated entry of the userid input box. I have used the following code attempting to get a reference & to close this ...
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
1answer
47 views

Banning domains temporarily from local access

I need to control myself. So far, I was using a Windows device for work, where I would simply reroute Facebook, news sites and similar to 127.0.0.1. In near future, I will have to use the same device ...
2
votes
1answer
44 views

Exponential Slowdown of Applescript

So I've been working on a simple AppleScript to try to help with managing my e-mail in OS X's Mail, and I have it seemingly working just fine with one major problem; the performance of the script is ...
2
votes
1answer
101 views

How to automate changing the settings when you connect the mouse?

I want to change option in System Preferences "Scroll direction: natural" every time I plugin mouse to my MacBook. And switch back when mouse is disconnected. This should happen automatically. How ...
1
vote
1answer
304 views

Automated Deletion of Messages From OS X Mail

Okay, so I know this is a tricky issue as OS X's Mail seemingly lacks the ability to automatically delete or archive old messages, even though it has the necessary date-based rules to do so. As such, ...
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 ...
2
votes
2answers
98 views

What's a way to run an automator/bash/applescript command right when a laptop starts charging and right when it stops being charged?

I'm trying to automate running a background application only when my laptop is charging to save battery. So it will launch when I plug the laptop in, and quit when I take it out.
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
1answer
222 views

How do I get system_profiler output from a lot of machines in a network?

I need to have a script that will execute "system_profiler -detailLevel full" command in a remote mac machine. While this is going on, the user on the remote machine should not know that there is ...
0
votes
1answer
67 views

Applescript to set Track Comment to Rating

I'm trying to develop an applescript that sets the comment tag to the track's rating. i.e., if it's a 3 star track, I want the comment to say "3 Star". tell application "iTunes" set theTrack to ...
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 ...
2
votes
2answers
35 views

Saving Applescript Removes Characters

I have written an Applescript to launch and position two instances of an Application. The script runs perfectly fine in the editor using this code: tell application "App" to activate tell ...
2
votes
1answer
188 views

Moving finder window from one display to another

Would it be possible to create an AppleScript to instantly drag one screen from one screen to another (say, center of the second screen)?
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
1
vote
1answer
56 views

Where is addressbook:// stored

I wrote an applescript that finds a person in my contact list. tell application "Contacts" set thePeople to first person whose first name is equal to "John" and last name is equal to "Doe" end ...
1
vote
0answers
133 views

Add local file URL handling to Applescript Application

I am using a simple applescript application to open different URL schemes in different Fluid Apps. By setting this app as the default browser, I can effectively parse out the URL scheme and open the ...
1
vote
1answer
40 views

How to automate audio editing?

I want to make audio editing workflows in Automator. My current goal: to cut out exactly the same length from a group of audio files. I haven't found any audio editors supporting AppleScript yet. ...
1
vote
2answers
59 views

automate app launch at midnight ?

How might I use Automator or Applescript to launch iTunes at midnight, and kill it at 5am ? (This is the only time when I have unlimited bandwidth.. rural sat-based ISP.. ugg.) Thanks.
0
votes
2answers
802 views

Using applescript to lock screen

I need an applescript which locks my Mac in the same way pressing "shift"+"ctrl"+"eject" would. I tried two different approaches, but both failed. The first one was to search the internet for a ...
1
vote
0answers
324 views

AppleScript auto Email attachment save

I am looking for an AppleScript, that simply uses an email defined by the "Mail Rules" and extracts the attachment to a specific folder. I found different codes, but they all didn’t do want I want. I ...
1
vote
2answers
114 views

OS X: Specifying custom command line invocation of program as application for opening files on double click

I'm primarily a Linux user who recently acquired a MacBook Air and I'm currently desperately trying to find out whether there's an equivalent for Linux's desktop definition files, where you can define ...
1
vote
2answers
196 views

Take a screenshot of the top-most window

I want to have an AppleScript that takes a screenshot of the front most application. I have used this AppleScript: tell application "System Events" -- get frontmost process set frontmostProcess to ...
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 ...
1
vote
1answer
70 views

AppleScript to find and delete a folder inside an FCPX library

I need to write or find a simple script to find, select and move to trash, folders within a Final Cut Pro X library. Because these libraries are bundles you can't search them in the normal way. What ...
2
votes
1answer
42 views

In an AppleScript, how do I call/reuse a subroutine from another AppleScript?

snippet 1a on removeText(searchText, sourceText) set prevTIDs to text item delimiters of AppleScript set text item delimiters of AppleScript to searchText set sourceText to text items of sourceText ...
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 ...
3
votes
2answers
169 views

Mirror number of unread mails in title bar

Is there a way to show the exact number of unread mails from the Mail.app icon also in the title bar? Note that this is not the same as showing the number of unread mails in inbox, since I can change ...
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
2answers
152 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
49 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 ...