Tagged Questions

AppleScript is a Mac OS-only inter-application scripting language designed to control and exchange data between scriptable applications. From the Apple Developer page: AppleScript is Apple's powerful and versatile native scripting technology for Mac OS X. With AppleScript, you can ...

learn more… | top users | synonyms

0
votes
1answer
20 views

Execute Script when leaving a window

is it possible to execute a Script (Applescript/Shellscript) when I leave a window (and when I switch back to it)? What I want to do: I want to pause my VM when I leave the VM-Window (vmrun pause ...
0
votes
1answer
32 views

Automate subject in Apple's Mail.app

At the company I work with, we use [client-domain.com] prefixes before the actual subject line of emails as kind of a rough tagging system. Is there any way that one could automate this so when I ...
1
vote
1answer
50 views

Converting rtfd files to txt, without deleting hyperlinks and pictures in OS X

I have a lot (>10k ... this can't be done manually) of rtf and rtfd files that I would like to turn into txt files. Unfortunately they contain pictures and hyperlinks that I don't want to lose. ...
1
vote
1answer
20 views

How can I get Automator to open a URL in the current Safari tab?

My current code involves a "Watch Me Do" block recording a ⌘ W keystroke and then opening the new URL, but that's kind of kludgy. Is there any way I can use Automator to open a URL within the current ...
0
votes
2answers
51 views

OS X switch to single monitor mode?

I have an extra monitor hooked up to my iMac running Snow Leopard. This additional monitor is also used by my linux box, so I occasionally switch to VGA mode when I need to use the linux box. My ...
2
votes
1answer
45 views

How can I type text from a file on Mac OS X?

I have text in ~/myfile.txt and I'd like to be able to "type" it into the current application, which will probably be TextMate or Terminal I'd like to see if I can have this happen without using the ...
0
votes
1answer
31 views

Get parent of folder in AppleScript

I am writing some AppleScript in an Automator workflow, and I need to get the parent folder of a file (or folder) object. I have searched all over for this, and gotten the same answers, which are to ...
0
votes
1answer
63 views

Automator Workflows How

I'm trying to follow the instructions here http://snowleopardtips.net/tips/everything-you-need-to-know-about-screen-captures.html under "Installing the Folder Action." First it suggests a folder I ...
2
votes
2answers
243 views

How do I run an Automator action, shell script or AppleScript on startup in OS X?

I know you can run applications on startup on a Mac, but can you run an Automator action, a Service, a shell script, or an AppleScript on startup instead? I also know you can save all of these as an ...
2
votes
0answers
47 views

iTerm2: How to get output of a shell command with applescript

I want to get the output of a shell command run through iTerm2's applescript into an applescript variable. I tried the following but it does not work: tell application "iTerm" activate try ...
0
votes
1answer
39 views

How can I parse data from inside a tag with Applescript?

How can I parse data from inside a tag with Applescript? I know Applescript has the words 3 thru -2 of myTextVariable syntax - but how would I use it to be sure I am just getting This is my text from ...
1
vote
1answer
82 views

OS X Set Screen Size Manually

I wish to increase the size of an application window like TextEdit to be greater than the actual screen height but it is always limited by the screen size pixels. Is there a way to artificially ...
25
votes
6answers
2k views

How to find my stolen Macbook

A friend of mine just had her Macbook stolen. Her Dropbox account is still working on the Macbook, so she can see each time the Macbook comes online, and she can get its IP address. She has given ...
0
votes
1answer
112 views

How do I close the terminal window after running a shell script from AppleScript?

I have created the following in AppleScript and although it works when I double click the compiled app, I am left with an empty Terminal window in the dock which seems to remain until I forcibly quit ...
1
vote
1answer
76 views

Need an everyday reminder at a specific time of the day on Mac OS X?

Does anyone know how I can create an everyday reminder that pops up every day at a specific time to remind me of doing something? I need to make it remind me everyday at 1:00pm to update my daily ...
9
votes
2answers
228 views

Prettier text dialogs in OS X scripts

I'm getting pretty sick of these default AppleScript and cocoaDialog dialogs: I'd like to replace them with something closer to this: Has anyone made a shell executable like cocoaDialog with a ...
0
votes
3answers
164 views

How to bring application to front every 15 minutes on Mac OS X Lion?

I have a free or cheap little app called Desktop Task Timer LE that I've been using to track my time as I work on various projects. I'd like to have it pop up as the foreground app every 15 minutes to ...
3
votes
1answer
80 views

Identify Mac OS X Window, Group, and Text Field names for use in AppleScript

I have an Applescript in which I wish to set the value of the text fields Name and Password of a window belonging to the process SecurityAgent. It is similar to the following: tell window ...
1
vote
1answer
48 views

Log out users when shutting down computer via Applescript

I am using the following Applescript to run a Time Machine backup, and then shut down OS X on the computer at our store. do shell script ...
4
votes
2answers
159 views

Apple Mail: Flag message from keyboard

One of the flags in Apple Mail can be applied to a message using Command-Shift-L. Is there a way to apply any other flag? I renamed one of the colors to TODO, and I set up a keyboard shortcut for ...
0
votes
0answers
114 views

Timed autologin script for Mac OS X 10.7

I would like to have a script that runs after starting up, when the normal login screen is displayed. If the login screen is displayed, it should wait for 20 seconds, and then it should login to a ...
0
votes
1answer
119 views

How do I automate clicking a button in an application's window with AppleScript?

Let's say I want to click a button that appears somewhere within a window, using AppleScript. click button works, but you have to know which button exactly you want to press. For example: Scanning ...
1
vote
1answer
115 views

How to programmatically flip a QuickTime movie metadata attribute from one kind to another

I have about 1,700 QuickTime movie files (some have .mov extension, most do not; it's not important, all are seen by the system as "QuickTime movie" and that's what they are) in an organized folder ...
0
votes
0answers
35 views

Set file creation date by reading modified date

How can I set a file's creation date as the modified date? e.g. File is made on Monday, edited on Tuesday. On Wednesday I want the date modified and date created to be set to Tuesday. Thanks!
2
votes
1answer
123 views

Set OS X application preference to stop prompting for admin password

I am trying to write an applescript that sends some actions to an application (specifically waterroof). The problem is, the application periodically asks me for the admin password when I open the ...
4
votes
1answer
153 views

OS X Lion Inverted Scrolling Automation Shortcut

As everyone will know (who has Mac OS X Lion), by default, scrolling is inverted to make it a bit like the iPhone. Problem: There is no way to have "normal scrolling" for a USB mouse, and ...
2
votes
1answer
264 views

OS X Lion: AppleScript unbearably slow for moving Mail messages

I've been using for years now the following applescript, triggered via iKey by an F12 keystroke: tell application "Mail" to move (get selection) to mailbox "Archive" I'm using it to move inbox ...
2
votes
5answers
1k views

Toggle “ask for password after screensaver/sleep” or the delay in 10.7 using terminal

There's an option in the preference panel to change the time the mac is able to be in sleep/screensaver before requiring a password to be unlocked again. I'm using OS X Lion 10.7. Is there any way ...
0
votes
0answers
75 views

Modify contents of incoming email in Outlook 2011 for Mac

I'm trying to modify an incoming email in Outlook 2011 for Mac using IMAP. The algorithm is as follows: Get the source(raw text) of incoming message Write it to HTML file Modify the HTML file ...
3
votes
1answer
125 views

Automated Interaction with Google Chrome

All right SU, I have a fun nut to crack. I have 8 screens set up in a line, all hooked into one beefy G5 running Snow Leopard (yes, 4 graphics cards; about 15,000 pixels wide!). I am setting up a ...
1
vote
2answers
66 views

Listing all known deleted OS X accounts

Where can I find Applescript code or a PList to get deleted usernames as known to the OS itself, regardless of the file system's deletions? Having to depend on folder hierarchies and backup disk ...
1
vote
1answer
90 views

How can I pause growl notifications via Terminal/Shell?

I was wondering if there was a way I could pause (hide) growl notifications from the command line? Failing that, is there a way to do this with an AppleScript?
1
vote
0answers
35 views

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

Cross posted on Apple Stack Exchange 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 ...
0
votes
2answers
343 views

How do I set up an AppleScript to open a new iTerm2 tab and change the directory?

In OS X, how do I set up an AppleScript to open a new iTerm2 tab change to a directory clear the console echo the current directory I had something like this before for regular Terminal, but I ...
1
vote
1answer
116 views

Get path of open file in any application on Mac OS X?

I installed Afloat for Mac OS X and I really like that it has a shortcut to "Reveal Current File in Finder". This works for basically all applications written in Cocoa. Can I use something like that, ...
1
vote
0answers
56 views

Switch between Tabs with Applescript

I have a cocoa-applescript application whose GUI interface has 3 tabs.The identifiers for these 3 tabs are "item 1" "item 2" and "item 3" respectively. Tab1 is the default tab with a form on it. Tab ...
0
votes
1answer
46 views

Resume Execution from where a function left -Applescript

I have an app coded in Applescript where a dialog pops up with three buttons: {Help, Add, Subtract} . When user taps the Help button, a dialog should popup displaying information about the app.This ...
0
votes
1answer
435 views

Get path of sub-folder's Parent : Applescript

I want to get the path of a subfolder's parent folder when I drop a folder on a application coded in Applescript So if I drop a folder called 'Test1' which is on the Desktop I want the script to ...
0
votes
0answers
154 views

Update plist file using AppleScript [closed]

I want to update a plist file using Applescript. This is the structure of the plist file: Root : type 'Dictionary' I have two child(Type-String) of Root: 'Test1' and 'Test2' When my script is ...
2
votes
1answer
68 views

Limiting number or closing oldest open Safari windows

My son is autistic and opens so many new Safari windows playing flash movies that his MacBook often becomes so unresponsive that it's faster to hard reboot it than wait for the force quit dialog to ...
2
votes
1answer
256 views

Selective Play/Pause VLC and iTunes with AppleScript

I have 5 button mouse, and i currently using one button for play/pause the music in iTunes (with USB Overdrive app). But sometimes i'm using VLC (i don't want scre up my music library with lot of ...
0
votes
2answers
399 views

How can I get the foreground color in Photoshop with AppleScript?

How can I get the foreground color in Photoshop with AppleScript? Preferably in hex format.
0
votes
1answer
261 views

Use launchctl to fire an AppleScript script periodically

I have written an AppleScript that lets me back up a particular file. The script runs fine inside AppleScript Editor: it does what it's supposed to do perfectly. So far so good. Now I'd like to run ...
2
votes
3answers
516 views

Automatic PDF renaming based on title

I have thousands of scientific PDFs that i need to rename, many do not have metadata. I would like to be able to create an automator action that could open a folder then open each PDF, copy the title ...
-1
votes
1answer
496 views

If then statement using applescript in mac terminal?

What would be the code for: "If $foo is one, then $foo should now equal 18" ? Thanks
0
votes
1answer
112 views

Applescript to Windows script (VB or java)

I want to have a button in Powerpoint (2003) and have it open iTunes to a specific playlist and start playing using AppleScript tell application "iTunes" play playlist "iTunes DJ" end tell ...
0
votes
2answers
353 views

How to select the “File Name” radio box with Applescript GUI

I'm running OS X 10.6 and I want to use applescript to click on the "File Name" radio button of the finder window when the search is open. (It defaults to "Contents") I used the UI Browser (below) ...
1
vote
1answer
212 views

Is there a good utility for resizing application windows to preset sizes in OS X?

I've been using the Better Touch Tool and Right Zoom to be able to maximize windows to full screen, and to resize windows to the center, or top right / left quarter of the screen. Those apps are ...
0
votes
2answers
595 views

Switch between Google Chrome Tabs using AppleScript

I was hoping that the following code would do the job, but no cigar: --Only the window is brought into focus tell application "Google Chrome" activate tab 1 of window 1 end tell
0
votes
1answer
129 views

Submitting an applescript to xgrid using osascript

I'm trying to submit an applescript to an xgrid using the command line. But I've got something wrong with the formatting. For example this doesn't work. I just get the help screen for xgrid in ...

1 2 3