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
132 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 ...
1
vote
1answer
251 views

Automator Service that does predefined simple calculations

I'm working as a salesman and what I need to do a lot of times a day is calculating the price +VAT and -VAT which is 19% here in Germany. I found some calculation automator script but wasn't able to ...
0
votes
2answers
1k views

How to run a downloaded run-only Applescript

I am trying to run an Applescript, but when I double-click it, it tries to open Applescript editor and informs me that it was saved as "run only". This is fine -- I just want to run it! The script in ...
3
votes
1answer
670 views

How can I generate dynamic keynote presentations?

I'd like to build a series of Keynote presentations that contain some dynamic elements. By that I mean some elements are "compiled" in later. For example if I have a code sample on a slide, I want to ...
3
votes
3answers
1k views

Show text using Large Type without relying on third-party applications

Apple has this amazing feature called 'Large Type', chiefly implemented into Address Book. When you look up a contact, you can right-click the phone number and click 'Large Type', and it will display ...
0
votes
1answer
125 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?
1
vote
1answer
317 views

Running AppleScript When Inserting a Blank CD

I want to automatically burn a cross-platform data CD with the same contents each time a blank disc is inserted, and eject it when done. To that end I created a very simple AppleScript that does just ...
1
vote
2answers
772 views

Automatically delete temporary ~/Library/Application Support folders

I have a flash drive which I carry around everywhere which has a few standalone applications which I use everywhere installed on it. However, the majority of these leave Application Support folders ...
1
vote
2answers
7k views

How can I remove a portion of from the middle of a movie?

Quicktime Player help: With QuickTime Player you can quickly remove a portion of the beginning or end of a movie or a movie clip to make it shorter or remove unwanted content. I want to ...
1
vote
2answers
670 views

FTP Client with AppleScript support

I'm looking for an FTP client with the following requirements. File/Folder sync Sftp/SSH tunnelling Outstanding AppleScript support Runs on Lion The GUI interface is not overly important as it ...
19
votes
1answer
38k views

How do I automate a key press in AppleScript?

Is it possible to automate the key press of a key (such as "a" or "<") in Mozilla Firefox, Google Chrome or Safari (in this order)? I'd like to automate the key press of "a" for example in Mozilla ...
2
votes
3answers
4k views

/bin/sh: rm: command not found

I have problems with some applications that use AppleScript shell script feature. For example, Growl's uninstall scripts shows an error: error "/bin/sh: rm: command not found" number 127 The source ...
0
votes
2answers
515 views

Applescript - ignore modifier keys

I have an applescript that needs to be called by an external program with command-shift-click. However, the applescript then performs keystrokes with command & shift held down. How do I get ...
2
votes
2answers
1k views

AppleScript “Kill” Command Error

I am attempting to run an AppleScript every 24 hours to close a running application and restart it. I have used the following code successfully with other Apps: repeat delay 84600 set app_name ...
2
votes
3answers
452 views

How can I run a PHP script by dropping file on icon?

I have a php script that takes a filename as an argument. When I run it from a terminal window I type ./my_script.php file_to_process.txt It works great! What I would like to be able to do is to ...
3
votes
1answer
1k views

List of (activated) fonts with shell command in os x

Is here any shell command for getting the list of activated fonts? Mean something like: some_font_util -activated -format 'file: name' for getting a list of activated fonts in a form: ...
1
vote
1answer
625 views

How to script “add to iTunes Library”

I'm trying to deliver as a download a collection of audio files such that the user (preferably Win and Mac) would be able to double click on the file (perhaps a DMG? / ZIP) and launch a script that ...
3
votes
3answers
392 views

How can I have a fixed order of the menu-extras?

Like the OSX menu items for wifi, battery... I would like to be able to have a permanent order of the third-party menu bar items. I do not want to mix OSX with third-party menubar items, I simply ...
2
votes
3answers
601 views

Create a command to focus a specific window from anywhere in OS

While developing for the web I tend to jump back and forth between my text editor and the browser a lot. I'd like to set a keyboard shortcut at the OS level that allows me to jump to a specific, ...
1
vote
0answers
106 views

Sending a “show next” command to multiple computers

I am trying to sync the advancement of Keynote slides on two matching computers. I am running into a delay on the second machine. ( I have switched the tell blocks and the second machine is always ...
2
votes
2answers
749 views

AppleScript to add files to an iOS app under iTunes

I know it's possible to write an AppleScript to add music and video files to the iTunes library. Is it also possible to write AppleScript to add files to iOS apps that use file sharing? For example, ...
1
vote
0answers
294 views

Populate Pages Chart Data via Applescript

Right now I'm copy and pasting between Excel and specified places in a Pages document. For instance, I'll copy cell B7 and find "B7_Value" in Pages and replace it with the copied value. Here's an ...
0
votes
1answer
403 views

Auto vpn connection dependent on Wifiname

I recently asked a question Auto connect vpn upon login/boot which got answered well using apple script . I want to extend this question to the following problem: The vpn connection should be ...
1
vote
2answers
177 views

How can I browse the directories of an external drive even when it is not attached?

I am new to this. Is there any script that analyzes and creates an XML files the entire file structure of any external hard drive that is connected to the computer,including all the fill names in all ...
1
vote
2answers
2k views

How do I write an AppleScript which auto reconnects to Wi-Fi?

Sometimes I need to download very big files from the internet using torrents (I'm using Transmission) and the Wi-Fi always drops. I bought several routers and modems and none of them work. I've been ...
4
votes
1answer
222 views

How to register an AppleScript as a potential default web browser?

I've written an AppleScript that I want to set as the default browser. I've added a CFBundleDocumentTypes section to the p-list (copied from Safari) and rebuilt the launch services database, but that ...
0
votes
3answers
949 views

creating script for ical events from properties of address book entries

I want to create a script that creates alarmed events in ical for birthdays of people that I have in my address book. Unfortunately, I am very bad working with applescript. Below is the outline of ...
1
vote
1answer
203 views

Looking for workflow or script for saving Kindle documents

I'm using a Kindle DX (3G, no WiFi) for reading documents saved from the web with Readability. Because Amazon charges a conversion cost for these documents I'm forwarding the documents to my ...
1
vote
1answer
211 views

How can I regularly move movies in iTunes to an external drive?

I have been adding a lot of movies to iTunes lately. Problem is, the size grows very quickly. I appreciate having the metadata in one place, but I would want to move the actual files to an external ...
3
votes
3answers
3k views

Software to record and playback mouse movement/clicks and keyboard presses?

I was wondering if there was any software out there that could record mouse/keyboard input and allow you to play back the input that was made? I've tried using Automator but for some reason it's not ...
2
votes
1answer
460 views

Can you (semi-)automatically rate all songs with at least X plays with Y stars in iTunes?

After reconsolidating my music collection in iTunes, I’m curious if there is any way to programmatically set star ratings based upon the number of plays, but only for songs that I have not yet rated? ...
0
votes
3answers
779 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 ...
2
votes
0answers
654 views

With Lion, Problems Accessing Shared NTFS Folders with SMB://

We are testing a local login script that we created for our Macintosh users on Lion. It has worked fine on all OS X versions prior to 10.7. Listed below is the script that we are using. When we run ...
1
vote
1answer
424 views

Is it possible to run a shell script when the iChat online status changes on Lion?

I had a script under Snow Leopard that would upload a tiny file to my server when I launched iChat to reflect my status on my website. For some reason it doesn't work anymore in Lion. Is there a way ...
4
votes
5answers
2k views

How can I remove leading/trailing whitespace from filenames in Automator?

My wife tediously renames files all the time when storing on her backup external storage, so I investigated using automator to do this for her. I now have an automator folder where she just drops the ...
8
votes
3answers
1k views

How can I make an AppleScript activate upon logging in?

Is it possible to force an AppleScript to activate when I log in?
2
votes
1answer
966 views

How Can I Restart in Windows Using a Script?

I'd like to be able to reboot into the Boot Camp partition without needing to go change the Startup Disk in System Preferences or holding down the Option key at startup. After reading some stuff on ...
5
votes
3answers
2k views

Where is the date and time preference data saved on Mac?

I need to check programmatically whether Set Date and Time automatically is checked or not on a Mac System Preferences. I didn't find any .plist file that contained this information, can anybody tell ...
4
votes
2answers
7k views

How do I use AppleScript to reveal a file in Finder from its POSIX path?

I'm trying to create an AppleScript snippet that locates the current random wallpaper and reveals it in Finder. I have the following snippet which finds the current wallpaper's POSIX path as a string: ...
1
vote
1answer
462 views

Why doesn't Automator service appear in iTunes?

I'm trying to write an Automator service for iTunes so that I can immediately open a file from iTunes in VLC, so I don't have to do (show in finder, launch with other application, vlc). I go to ...
6
votes
2answers
527 views

What's the easiest way to automate logging into a website?

There's this website I need to access about every ten minutes. And apparently it was designed in 1993, by sadists. There is no "remember me on this computer" checkbox. And if you don't interact with ...
4
votes
2answers
486 views

How can I change a file's creator code on vanilla Snow Leooard?

When Xcode is installed your best bet to change a file's creator is SetFile. I only found AppleScript. Unfortunately, while the type is set correctly, the second line silently fails on my 10.6: set ...
9
votes
4answers
17k views

How do I open Google Chrome in Incognito mode by default

Is there any way (using apple script or by using settings on chrome) to open Google Chrome in incognito mode.
4
votes
1answer
635 views

How can I automatically download multiple sites through Coda?

I have several sites in Coda that I would like to automatically re-download when I tell it to. The sites are collaboratively managed, and I'd like to download a fresh copy of the sites automatically. ...
0
votes
1answer
626 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 ...
4
votes
2answers
10k views

How can I configure my computer to run an AppleScript at a specific time? Caveat: without using iCal

Since upgrading to Lion, I have seen a sleight decrease of productivity when it comes to using iCal. As a result, I am trying alternatives such as BusyCal. The application seems great, however I cant ...
3
votes
2answers
2k views

Osascript error

I was messing around with some external libraries, and for some reason when I enter any Osascript command, I now get this error (before it did work): 2011-09-07 19:13:43.306 osascript[1083:707] ...
1
vote
1answer
578 views

AppleScript broken in Lion?

It seems like I cannot execute AppleScripts on my Mac. I am running OS X 10.7.1 and when I try to compile an AppleScript, even a script as simple as display dialog "Hello World!", I get a syntax ...
8
votes
4answers
800 views

Copying formatted text from a web page to an Applescript input dialog

I have an Applescript which - simplified - looks like this: ... display dialog "foo" default answer "" ... One of the users of this script runs Lion. Whenever he tries to copy/paste a string to the ...
3
votes
4answers
2k views

Can Python/Ruby/Perl/etc (or even bash) replace AppleScript?

I'm not inviting people to hate on AppleScript in general; I'm just wondering if what makes AppleScript useful can instead be used by other general-purpose scripting languages. I.e., Lion & Mac ...