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

learn more… | top users | synonyms (3)

0
votes
1answer
594 views

How do I remove the Finder from the Dock automatically at login?

This is related to this question here, except that, in addition to removing the Finder, I want to do it automatically. There are several solutions on the web that suggest using this AppleScript: tell ...
0
votes
1answer
105 views

Applescript, quit app if other app is quit

I have a (very basic) apple script that I use as a trigger to start and hijack Plex, using Audio Hijack Pro. tell application "Audio Hijack Pro" start hijacking session named "Plex" end tell tell ...
0
votes
1answer
80 views

How do I add a custom field to the login dialog?

When the screensaver has been disturbed, or the computer wakes from sleep, my system asks for a password. I would like to add to this dialog. Along with username and password, there would be a third ...
0
votes
1answer
2k views

Permission denied for symbolic link

I'm creating a symbolic link with the following applescript: on run do shell script "rm /usr/bin/ant" with administrator privileges do shell script "ln -s ...
0
votes
1answer
294 views

apple tv ssh script automation

I have a Apple TV 2nd generation that is jailbroken and I run xbmc on it. At times it gets hung or freezes up. At that point, I open up the terminal on my macbook and run this script. ssh ...
0
votes
1answer
93 views

Any way to add Lion full-screen feature for TaskPaper by AppleScript?

I am using TaskPaper and, unlike most Mountain Lion apps, it appears that there is no way to make it go full screen. Would it be possible to use an AppleScript to make it go full screen in the same ...
0
votes
2answers
1k 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 ...
0
votes
1answer
41 views

Is it possible to show custom icons in the Scripts menu?

You know that "scripts" menu you can show in the right side of the menu bar? It's very useful. I'm talking about this menu: I've set some custom icons for the files in the scripts folder using the ...
0
votes
1answer
228 views

Swap Mouse Button using AppleScript

I use mouse with left-hand. My system is shared with other people who are right handed. So, I need frequently to switch mouse button. I would like to know how to swap mouse button using AppleScript? ...
0
votes
1answer
152 views

Set environment variable for the process before startup [duplicate]

I have the following situation: I have Mac OS bundle with application which uses some 3rd party dylib's and those dylib's depend on some env variable, let's name it ENV_VAR. I want to set ENV_VAR to ...
0
votes
2answers
151 views

How do i automatically send ebooks to my Kindle?

I would like to create an automation, that automatically sends a new file to my kindle email address if i put a new ebook into that folder. How would a script look like, that i would have to apply to ...
0
votes
2answers
102 views

What is the maximum amount of file arguments I can pass to a command?

If I do this in OS X, what is the maximum amount of files I can test? Or is there a maximum length for this string? do shell script "md5 -q 'path/to/file1.txt' 'path/to/file2.txt'"
0
votes
1answer
211 views

How do you set the selection in iTunes in an AppleScript

I'm writing a script in iTunes, part of which changes the selected playlist. When I'm all done, I want to restore the playlist and the selected tracks. I was able to do the first, but haven't found a ...
0
votes
1answer
2k views

Searching for items in list

I'm trying to search within a list of items (specifically, a list of files from a folder) for certain files. However, I don't know the names of these files; all I know is that they all begin with the ...
0
votes
1answer
308 views

Automator: start embedded YouTube

So, I need to show some kids a sequence of YouTube videos (with Automator, because there's no one available to man the computer for 30 minutes), but it's at a school where the YouTube domain is ...
0
votes
1answer
276 views

Applescript and Fantastical

I trying to add a Fantastical event with AppleScript. Aparently the Fantastical Suite is quite simple as there is only one verb. parse sentence v : parse sentence parse sentence text : sentence ...
0
votes
2answers
899 views

Applescript dialog, Bash alias/function

I'm trying to create a short alias for creating System dialogs from the Terminal. I tried to create a Bash function (since an alias didn't seem to take arguments) and add it to my .bash_profile, but ...
0
votes
1answer
175 views

Toggle Apple Mail “Classic Layout” with shortcut?

Can anyone figure out a way to switch Apple Mail (v5.2) to/from "Classic Layout" mode with a hotkey? Maybe via Applescript?
0
votes
1answer
404 views

Applescript to automate drop-down selection in Mozilla Firefox

I'm trying to automate the selection of a value from a drop-down box in Mozilla using an applescript. What I want it to do is to tab to the drop-down box and enter down twice to select the third item ...
0
votes
1answer
1k views

Script to be activated if web page changes [closed]

I'm looking for a way to have a script running on my desktop that will check a certain webpage for changes every x seconds, and if a change is made, it gives me an alert. I understand that with ...
0
votes
1answer
1k views

Apple Script + VPN + Textbox

I have an applescript : tell application "System Events" tell current location of network preferences set VPNService to service "VPN (Cisco IPSec)" if exists VPNService then ...
0
votes
1answer
196 views

Script to Update/download most recent iTunes podcast WITHOUT opening iTunes at all?

I have a couple favorite podcasts that I subscribe to in iTunes. I'm using You Control (so I don't have to open iTunes to play my music). I'm using Keyboard Maestro. I've made a macro that runs ...
0
votes
1answer
89 views

Turn on iTunes EQ via AppleScript

Can I turn the iTunes EQ on/off using AppleScript? I found a way to change the preset, but not turn the EQ on or off.
0
votes
1answer
3k views

How to initiate a specific keystroke using automator?

I have the following code : on run {input, parameters} if application "KeyboardViewer" is running then quit application "KeyboardViewer" else activate application ...
0
votes
4answers
676 views

Pressing the control key with AppleScript

I use Voice Over and Dragon Dictate. I have figured out how to make Dragon Dictate press Control-Option-A, which makes Voice Over read a page of text, and now I would like to figure out how to tell ...
0
votes
1answer
687 views

Script to turn flagged emails into reminders

I am looking for a script that will recognize when an email is flagged and then turn it into a Reminder using the Reminders app.
0
votes
2answers
676 views

How can I connect Linux server with Applescript using iTerm or Terminal?

I want to connect and run bash script on Linux server automatically by using Applescript and iTerm or Terminal on OS X. How can I connect Linux server with Applescript use iTerm or Terminal?
0
votes
1answer
524 views

Drag and drop from iPhoto may remove the pictures from iPhoto Library, how to recover it?

I modified the "Recursive Image File Processing Droplet" example provided from Apple in AppleScript Editor to rename any dropped file and move it to a custom folder. It worked seemingly flawlessly ...
0
votes
1answer
110 views

Applescript won't play movie when waking from sleep

I have the following AppleScript, which is triggered by iCal to act as my alarm clock: set musicPath to the path to me as text set musicPath to text items 1 thru -12 of musicPath as text set ...
0
votes
1answer
329 views

AppleScript and Growl: How to choose the display style?

I'm using AppleScript and calling Growl notifications and I notice that it ignores my choice of using Bezel as my system default style. It only changes if I manually change it in Growl's preferences. ...
0
votes
2answers
674 views

How to make Applescript quit a specific program for all users?

My wife and I are set up on a single laptop and I have our iTunes libraries stored on an external HD. I'm writing an applescript to auto eject that drive when we want to take the laptop elsewhere (we ...
0
votes
1answer
462 views

pasting commands from TextWrangler to Terminal (applescript troubleshooting)

I have a following script that I have been using for years to paste selection or a whole line from TextWrangler to R. I got it from some website, slightly modified, and it has worked perfectly: tell ...
0
votes
1answer
4k views

Use AppleScript to launch and manage Quicktime Player in the background

I have a Perl-based audio player that runs on OS X, and I need to update how the audio files are played. I'd like to use AppleScript to control the QuickTime Player, because it will do what I need, ...
0
votes
1answer
327 views

Generate an iOS Project (.xcodeproj) with AppleScript

How can I generate an iOS project (.xcodeproj) with AppleScript (without XCode)?
0
votes
1answer
142 views

How can I make a keyboard configuration become default when I hook it up?

At work, I have a MacBook Pro and a RHEL workstation that share a HP keyboard and mouse via a KVM switch. I do most of my work on the Mac so I prefer to change the modifier keys so they command and ...
0
votes
1answer
133 views

How do I refresh Application metadata - URL handlers, Web browsers - after installing my own AppleScript?

I'm working on an Apple Script that handles URLs. There's a command one can give which re-creates the list that Safari shows to change the default web browser. Anyone know what this is?
0
votes
3answers
870 views

Applescript to disable screen saver through sending keystroke

I'm trying to write an applescript that will disable the screen saver through sending a keystroke. Something like sending a "shift key" pressed every 30 seconds. I don't want to have the applescript ...
0
votes
1answer
632 views

Fastest way to migrate an application between Mac's?

after using the Migration Assistant each time arrives a new OSX or i buy a new MacBookPro, its time to tidy up my work machine, Since upgrading my current MBP(mid2009 2.8GHz 4GB DDR3) to Lion many ...
0
votes
1answer
182 views

I want a pop up notification when a file has certain info written to it

I have a server that my machine is connected to via AFP. On this server there is a file called 'TransferLog.txt'. While the server is doing it's work it adds to this file. When it finally writes ...
0
votes
1answer
220 views

How do I create Growl notifications for FCE?

I found this script online somewhere and I'm trying to make it so that it constantly checks to see if Final Cut Express is rendering and when it finishes rendering, it displays a Growl notification. ...
0
votes
1answer
1k views

AppleScript - Changing Width of Dialog Box and Adding Text

I have a normal display dialog working using AppleScript within the Editor. How would one increase the width of the display dialog and add text under the input field and above the buttons. In advance, ...
0
votes
0answers
24 views

<Applescript> how to change/set the name of an existing recipient in outlook 2011

In Outlook 2011, I replied to a email using applescript. The recipient address exists. Now I would like to set a name for this recipient. Is there a way to set or change a name for an existing ...
0
votes
0answers
16 views

Applescript to fill out Server Password Prompt

I'm trying to figure out if it's possible (via AppleScript) to fill out a server authentication dialog box asking for username and password (using Google Chrome). This is the dialog box I see when ...
0
votes
1answer
28 views

Automator - How to know what I can do with Automator in each app

I'm new to AppleScript and Automator, I've reached to stop and play next and previous track in Spotify, here's what I use inside the AppleScript: tell application "Spotify" to playpause for ...
0
votes
0answers
16 views

Adding a Folder into favorites sidebar with applescript

I am using Yosemite, and am having issues getting my applescript below to actually put a file into the favorite bar. I tested the file by typing "t" + Command + control, and it works, but when I run ...
0
votes
0answers
26 views

Reference parent of object specifier in AppleScript

This is my first attempt at AppleScript so I apologize if I don't explain myself very well. I am trying to have iTunes select an App form a list when an iPad is plugged to the computer. I need it to ...
0
votes
2answers
51 views

AppleScripting QuickTime Pro 7 to export .png files

How can I use AppleScript to save .png files from the start and end of .mp4 files with QuickTime? This is something I am doing a lot of and it would be good to automate it. I have some scripting ...
0
votes
0answers
26 views

How to have Automator say click “Thanks” to App's Dialog Box

Using Automator, how to click "Thanks" on the apps Dialog Box? The app runs a process, and when the process finishes returns a series of Dialog Boxes with the result. Each Dialog Box, has 1 button ...
0
votes
0answers
34 views

AppleScript click on website link

I need an AppleScript to select a specific text field of an area, paste a text and click enter. I have inspected the text (research) field. Here is the result: <input placeholder=​"Search Value" ...
0
votes
1answer
100 views

Is there a quicker way to pause Photos uploading to iCloud?

Photos.app on Yosemite takes forever to upload its library to iCloud, and can slow the WiFi network to a crawl while it does so. I know that I can pause it in the app's Preferences, but this is ...