Tagged Questions

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

Always show service in contextual menu

Sometimes when I create a service in Automator, I want it to always appear in the Finder contextual menu, not just when I have a selected a file or folder. The services are always either pure ...
1
vote
1answer
1k views

Using applescript to control an application which does not support it

I want to control an application that does not have an Applescript api (simfy). I would like to pause it via an Alfred command, but for this I need to use scripts. This application is build with Adobe ...
5
votes
1answer
452 views

How can I find the intersection of two lists in AppleScript?

Let's say I have two lists in AppleScript: set listA to {"red", "green", "blue"} set listB to {"green", "blue"} I'd like to create a third list that has only the items present in both lists: set ...
0
votes
1answer
178 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 ...
3
votes
6answers
9k views

Mail.app in Lion - is there a way to create tasks from email?

I'm not sure if I haven't seen that in earlier versions of Mail.app, but I would really love to have the ability to create a task in iCal from an email - and that this task could link to the original ...
6
votes
4answers
8k views

How do I make an AppleScript with a drop-down menu without Xcode?

How do I make an AppleScript that displays a drop-down menu without using Xcode?
4
votes
2answers
542 views

Where can I access official AppleScript documentation?

Is there any official AppleScript documentation? If so, where can I find it?
1
vote
1answer
2k views

How do I download a URL using Applescript

I used to be able to download URLs from an Applescript, but I lost the Applescript. I want to enter a URL: i.e.: "http://wpclassic.com/go.php?http://www.revolutiontwo.com/download/tv.zip" and have it ...
4
votes
3answers
8k views

How can I trim the first 3 characters in file name with AppleScript?

Is there a way to trim off the first 3 character of multiple file names? (or last 3 characters)
1
vote
2answers
318 views

I'm using git+notational velocity and want to know how to commit after I exit the program

What I'm looking to accomplish is have something trigger a git add *.txt and git commit -m "Automated Commit `date`' when I close Notational Velocity. I'm guessing I could probably accomplish this ...
1
vote
1answer
159 views

Automater/Applescript page viewer/downloader loop

I have some 9500 individual audio files I am trying to download which: a) require a login to a website b) are located at subdirectories which ?redirects? to a download link (eg. ...
0
votes
0answers
223 views

How does Snow Leopard arrange files by “Date Added” for folders on the dock?

I would like to know the underlying mechanism that Snow Leopard uses to arrange files, within folders that are placed on the dock, by "Date Added." I would like to know this in order to retrieve the ...
1
vote
1answer
802 views

Creating a quick event in iCal using LaunchBar & AppleScript

what i want to figure out is how to send a String to iCal 5 on 10.7 which is interpreted the same way as creating a quick event, as if you press CMD+N with iCal in focus and then just type "tea at 5" ...
2
votes
1answer
731 views

Problem setting terminal window bounds with AppleScript

Problem trying to solve I use multiple terminal windows to develop web applications. I'll have a terminal open for vim, a terminal open for git and a terminal open for basic file/directory commands. ...
4
votes
2answers
441 views

Is there an AppleScript or Automator action to quickly edit Info for Video in iTunes?

I ripped the DVD set of a television series to my iMac. But now, the filenames are weird and there is no meta info. In Automator, I see there is an action to edit Info for a song. That's great, but ...
0
votes
1answer
779 views

Applescript to open javascript bookmark

i have the following javascript that searches the current site (very handy) ...
6
votes
1answer
7k views

Where did “URL Access Scripting.app” go in Lion?

I have AppleScripts that run on a schedule to download files from URLs. They had been using URL Access Scripting.app's download event, which now looks to have disappeared from Lion. I can't find any ...
0
votes
1answer
212 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. ...
2
votes
2answers
787 views

Getting field data from a Bento database using Applescript

I'm having problems getting the field values out of a Bento database using Applescript: I'mn using the following code to get at the entries but I'm not able to get at the cells or fields associated ...
4
votes
1answer
992 views

Can I write an Automator/AppleScript script to download all the iTunes app updates?

This is related to How can I tell iTunes to always download free updates I would like to write a script to tell iTunes to download all the free app updates available, and have that script run ...
1
vote
3answers
706 views

Make a screen-shot and upload with a script

I am not very good with AppleScript but I would imagine this is something quite easy for the AppleScript guru out there, I am looking to make a screenshot of a region like with doing Apple-Shift-s and ...
1
vote
2answers
295 views

Is there a way to execute on applescript when a server becomes available?

I am trying to execute a script when a server becomes available (a bit like when the OS detect the presence of a time capsule device and it starts the backup.) I didn't find a simple way to attach an ...
11
votes
8answers
9k views

How to retrieve current wattage info on OS X?

Is there a way to retrieve the current watt usage info on OS X Snow Leopard? I'm using mid-2010 iMac, so I'm not looking for just battery-related apps. Does OS X even monitor power usage? Do I need ...
3
votes
5answers
7k views

How can I write a script to open multiple terminal tabs and execute code in them?

I want to be able to open the terminal application and have it either automatically run a script that opens several tabs and run an arbitrary set of commands in each. For example I would like one tab ...
2
votes
1answer
952 views

applescript (osascript) for changing Terminal.app profile

Is here a way to changing the Terminal.app profile from the command line? Here is already couple of questions about changing colors, but I need change the whole profile from the "Basic" (what is my ...
1
vote
2answers
606 views

Automator or AppleScript Rename Workflow

Is it possible to automate the following action: Example Folder name: "TEST" the name of the file inside the folder is: "Evelyn.jpg". How do I rename the folder using the name of the file inside of ...
2
votes
1answer
420 views

Applescript to change Wacom Driver settings

Can an Applescript change the primary monitor option within the Wacom Driver, and do it near instantly?
5
votes
2answers
2k views

Is there a fast way to change proxy setting?

On my laptop I usually have a ssh connection open and use the remote machine as a proxy server just so that all my network traffic is over ssh. I know that it's hopeless and we're all doomed, but it ...
3
votes
5answers
692 views

Good/inspiring uses of automation on Mac OS X

I have been a mac user for quite a while now (about 5-6 years) and I would consider myself rather tech-savvy. That being said I have very little insight to the automation capabilities that have been ...
3
votes
2answers
11k views

Converting HTML to PDF using convert utility in Mac OS X

I'm trying to convert a bunch of HTML files into PDF files. I'm looking for an automated solution so that i don't have to open each HTML file individually and convert it to PDF. In Mac OSX, convert ...
2
votes
2answers
3k views

How do I use Applescript with Keynote?

My first Problem: For some reason the Applescript Editor is not able to pick up events when recording from Keynote'09 (I already turned on the acessibility options). The Editor stays blank for all ...
4
votes
3answers
1k views

How to make a simple app from an applescript!

I've got an applescript that I use to open files such as test.txt in vim, using the terminal. I usually open a file by right-clicking it an selecting the service open in vim (this service is created ...
1
vote
2answers
867 views

Cannot start MySQL server with AppleScript - Snow Leopard

I've sucessfully installed MySQL server (5.5.11) on my MAC Snow Leopard. I can start the server using PreferencePane, using command line sudo /usr/local/mysql/bin/mysqld_safe but cannot use the same ...
1
vote
3answers
846 views

Trigger 'Gather Windows' programmatically (or other quick way)

I'm trying to make myself a little script that I can run on the fly that gathers all my open windows onto the main display. I think a good starting place would be to be able to trigger Gather Windows ...
2
votes
2answers
2k views

Automatically press a key every 60 seconds

Is it possible via Automator, an app, applescript, etc. to automatically press a key (i.e. "g") every 60 seconds?
1
vote
1answer
824 views

AppleScript app started prompting to run or quit. How can I disable this?

I'm not entirely sure why this has started happening since this is completely new behaviour and I haven't done any system updates but I have a nice little toolbar app for my Snow Leopard Finder.app ...
1
vote
2answers
298 views

Compare my iTunes library with the iTunes Store's

Is there a way to compare my iTunes library with the iTunes Store's library, so I can find what songs I'm missing by a particular artist? Ideally, I would be able to compare the Store and my Library ...
5
votes
1answer
2k views

Is there a way to force Mac OS X to close all the applications when restarting?

I sometimes shut down my Mac, and I cannot wait it shuts down because I am urgently requested to do something in another office that would require some hours. In some cases, an application that opens ...
1
vote
2answers
117 views

Scripting environment setup

When I start a session programming on my macbook pro, I have a bunch of apps I'd like open and ready: DevNull smtp java server (run from terminal with java -jar DevNull.jar) Terminal shell in the ...
13
votes
3answers
7k views

How can I “say” to another Mac?

I have two Macs in our house (iMac and MacBook Pro). I would like to use the say command-line utility to type something on my MPB and have it speak on the iMac, rather like an intercom system. Plus, ...
3
votes
1answer
3k views

how to send scheduled mails with Mail?

I would love to send mails in my apple mail scheduled! What is the most comfortable way to do that? only method i found: http://homepage.mac.com/aamann/Mail_Scripts.html (but this is quite tricky + ...
1
vote
2answers
588 views

AppleScript “Open With…” icon

I've written an AppleScript app that I use to open certain files with (it sends them to Vim in the Terminal). I'd like to set all my .Tex files to automatically open with this app. The problem is ...
8
votes
2answers
3k views

Automatically delete a folder daily

Is there a way to automatically have a folder deleted every day at 4am? I'm running 10.6.7.
2
votes
3answers
1k views

Check if a process is running, if not execute it again in Terminal

Is there a way to periodically check if a process is running with (probably with Apple script, or some other shell script) and if not then to execute it in Terminal? I have a PHP script that is needs ...
5
votes
3answers
3k views

Programmatically/Script-atically changing the default Open-With setting

Is there a way to change what app opens a file type programmatically/with a script? Basically, sometimes I'm working on a web site, and I want to set all web files to open with a text editor (*.php, ...
2
votes
1answer
361 views

Force a file to overwrite instead of appending

I've got an application that won't overwrite a file with the same filename. It will only append the filename with a 'space 1'. If I write a file more than once I get something like this: ...
3
votes
3answers
6k views

Applescript to retrieve account and password using keychain scripting

How can I use keychain scripting to write a script in Applescript that retrieves the login and password of a website from the login keychain, given the website's URL?
1
vote
1answer
670 views

AppleScript to spit out Incremented Number with Leading Zeros

So I am trying to create a simple script that will use a file to store an integer. When the script is called (in my case as part of a keyboard macro) it will drop in (where I'm typing) the current ...
7
votes
6answers
3k views

Sending push notification to iPhone via AppleScript

Is there any combination of iPhone and/or Mac apps that I can use to send a push notification to my iPhone? For example, let's say I want to create a service (invoked via (Application Name) > ...
2
votes
1answer
257 views

Undocumented applescript functions

Is it possible for an application to have undocumented applescript functions. Commands that do not appear in the Applescript Editor Library for the application? Is this common? Is there someway to ...