0
votes
1answer
51 views

How can I use AppleScript to open a new Safari window on the current desktop space?

I need to open a new Safari window in the current desktop space using AppleScript. NOT move to another space which has Safari running and then open another Safari window. Of course, if Safari is not ...
0
votes
0answers
39 views

Outlook on a MAC and the 1GB limit

While waiting for MS Office 2014 to arrive and address the 1GB limitation, has anyone written an AppleScript for detecting file size on an Outlook file/folder to send a threshold exceed warning ...
0
votes
0answers
36 views

Changing Mac OS X text-to-speech voice per contact in Messages.app

I am quite enjoying using the Speak Events.applescript handler in my Messages.app. It speaks the incoming messages. I'd like to have a male voice for my male contacts and a female voice for female ...
0
votes
2answers
199 views

Apple Script - Reopen Closed Finder Windows

I have the following Applescript which toggles the show/hide hidden files and I would like to reopen the user's Finder windows which will be closed as the Finder gets relaunched. tell application ...
0
votes
0answers
25 views

Is it possible to duplicate mail.app and access using applescript on mac?

I made a simple applescript to create an email conversation. It was a program that, when you sent it an email that said "update schedule", it would send the sender of the message an updated schedule ...
0
votes
1answer
183 views

Trying to Use AppleScript to Convert .xls and .xlsx to .txt (Tab Delimited), Needs Fixing

I copied this from an answer I got from another thread. I am trying to convert ~300 .xls and .xlsx files to tab delimited. They are all in the same folder. If anyone knows a better way, please let me ...
0
votes
1answer
362 views

AppleScript + Quicktime: Start and stop a movie recording and export it to disk

Attempting to start a screen recording, wait a few seconds, stop the recording and export saved recording to disk. Versions AppleScript 2.2.4 QuickTime: 10.2 AppleScript set filePath to "" & ...
0
votes
1answer
39 views

Restarting multiple mac computers with terminal

How do you restart multiple mac computers that are on the same network with terminal? I know the ssh command to login to one computer but I want to be able to send a reboot command to multiple ...
0
votes
2answers
219 views

Applescript to get name with VLC 2.0 should work but doesn't

I'm trying to get the name of the current file playing in VLC. Applescript SHOULD be able to do this with VLC 2 and on (it's in the dictionary, "name of current item") however it keeps not compiling, ...
1
vote
2answers
104 views

LaunchAgent plist to keep an app running and hiden

I'm using the following script <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist ...
0
votes
0answers
131 views

Apple script/app to give me a reminder when I shut down

I have two network drives which I leave running for backups - they are a bit sensitive to being simply powered off - I need to log in to the drive and tell it to shut down first. Sometimes I shut down ...
2
votes
1answer
702 views

AppleScript: Open a new window in current space without switching to active window in another space

I want to have an application open a new window in the current space without switching to a space in which a window is already open, but I want to keep the When switching to an application, ...
3
votes
3answers
858 views

Quotes within quotes applescript

I am doing an applescript that is supposed to set an command with quotes an varible. This is the code so far: set myString to "This is a "quoted" text." But an error occurs because applescript ...
1
vote
1answer
38 views

I would like to know if someone has applescript to loop al my stickynotes and put it in a textfile

I have been meaning to do this for a while, but I never got around to do it. The problem is that I have to do research how applescript works. Anyway, I have now collected over 200 snippets for my ...
2
votes
1answer
112 views

How to get which file is requested to open using a mac application?

I have created a mac application which can be open my file extensions. But when I tested it, I dont get the path of the file requested to open using the application, instead I got the "psn_0_151589". ...
1
vote
2answers
763 views

Close all Mac Terminal windows, but the one running a script

I am trying to create a shell script that runs a python simulation programing in 4 terminal windows. I have the script that launches the program four times in four separate terminal windows(total of ...
3
votes
0answers
479 views

Applescript to connect to bluetooth device

I'm trying to create an applescript to allow me to connect to a bluetooth device by it's Bluetooth ID. So far, i've managed to get an applescript to turn on bluetooth if it's off. Here's the code: ...
3
votes
1answer
524 views

How can I run an AppleScript or shell command on Mac OS X at screen unlock?

Note that this is not the same as startup or login. I never log out of my machine and I want to run the script whenever I unlock the machine to start working.
2
votes
2answers
108 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
297 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
463 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 ...
2
votes
5answers
6k 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 ...
1
vote
1answer
498 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, ...
0
votes
2answers
738 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
1k views

Change Mac “Ask for password after screensaver” delay

How can I change my Mac OS X Snow Leopard "Ask for password after screensaver" delay? I've tried: defaults -currentHost write com.apple.screensaver askForPasswordDelay -int 3600 but won't work. I ...
2
votes
2answers
3k views

Open Terminal Here, as Root (OS X)

There is a pretty awesome applescript called "Open Terminal Here" ( http://www.entropy.ch/software/applescript/ ) which you can add to your finder's toolbar and click when you want to launch a ...
1
vote
2answers
2k views

How to I use Apple Script to change the keyboard layout on Snow Leopard? [duplicate]

Possible Duplicate: Switch TO specific input source I want to do something like: set keyboard layout to 'QWERTY' or something like that.
1
vote
1answer
1k views

Mouse movement vertical axis inversion? (Mac OS X)

I would like to either run an AppleScript or use a Terminal command to invert the y-axis for mouse movement in OSX— and no, not like http://d.pr/w9z7 (/joke). Any ideas? I thought about checking for ...
1
vote
3answers
283 views

Is there a way to avoid having to click Autofill in iTunes?

I'm tired of always having to click "Autofill" in iTunes to put new songs and podcasts on my second generation iPod shuffle so I'm looking for a way to automate this with a keyboard shortcut, ...
1
vote
2answers
280 views

Is there a way to stop iTunes after the currently playing radio song ends?

While scripts like This Is The Last Song and Just Play This One work great with local songs, they don't seem to work with Internet radio stations like Groove Salad in spite of the fact that the name ...
5
votes
1answer
699 views

Determine Mac's screen state using AppleScript

Is there a way to determine what state the Mac's screen is in? I'd like to have a script that checks if the screen is in a non-active state; so either the screen saver is running or the display is ...
1
vote
2answers
544 views

Add Secure notes to Keychain via Applescript

I have switched from Windows to Mac and one of the things I need to set up properly is password management. Previously on Windows I was using a small TrueCrypt file containing text files with ...
3
votes
1answer
479 views

AppleScript Editor record doesn't work

I have opened the AppleScript Editor and pressed Record button. Then I run TextEdit, create a file and put some text there. When I click Stop button in AppleScript Editor, nothing was recorded, the ...
1
vote
2answers
698 views

How do I escape a slash in AppleScript?

How do I escape a slash in AppleScript? The documentation seems to suggest that set target_string to "\\" should return a single \, but in fact it returns \\\\. On the other hand, set ...
1
vote
1answer
1k views

How to get QuickTime Player 7 to save its export settings?

I'm trying to get QuickTime Player 7 on Mac OS X 10.6.4 to save its export settings so I can batch convert some MKV movies to M4V (MPEG-4). I've already exported a movie using the settings I want. ...
1
vote
1answer
2k views

How to automatically print the contents of a folder in OS X?

I would like to be able to set up a folder on my Mac, where I could dump files and have them be automatically sent to the default printer. This way I would be able to print files at home when I'm not ...
0
votes
2answers
574 views

Applescript cannot find sed during application install

I am attempting to install an application, but the installer fails with the following error message: sh: sed: command not found and there is an Edit and OK button in the dialog, so I click the Edit ...
1
vote
3answers
912 views

Can Automator or Applescript copy the number of items in a folder to the clipboard?

In Automator or Applescript, is there a way to get the number items in a folder and save result to the Clipboard or Automator Variable so I can use it in the next Action?
3
votes
1answer
243 views

Script Editor in Snow Leopard painfully slow after adding apps to Library

I have four different Macs that I use from time to time, and on each of them I notice a constant: adding more items to AppleScript Editor's Library window slows performance of mundane operations ...
0
votes
1answer
303 views

Applescript - Take a plain text and turn into a html link

We work with bugzilla. Whenever you need to query a ticket you just need to know the bugid (integer) and you simply prepend this to it. ...
1
vote
1answer
770 views

Applescript: Check if shell command fails?

I'm writing an AppleScript to watch a folder for completed downloads, then process them. If I'm downloading a file split across partial RARs (.r01, .r02, … God I hate those), they'll enter the ...
13
votes
5answers
40k views

Track kids browsing history even when they know how to clear it manually

I have a colleague with two teenage boys (yes, cue cliche's about 'I have this friend see...') He's currently having issues with them browsing pr0n and wants to do a little spying on their browsing ...
0
votes
1answer
423 views

Is Grapher (Apple)scriptable, and if so, how?

I use Grapher all the time, and while I think it's mostly wonderful, there are some things about it that I find annoying. Specifically: The default 2D graph has annoying default options that ...
2
votes
1answer
471 views

A way to strip certain text from incoming email in Mail.app (Mac Mail)?

I receive a large number of emails from a particular client of mine. These emails all come with a fairly long standard disclaimer at the bottom. When I print these emails, Mail makes a complete bodge ...
2
votes
2answers
1k views

Finding folders that contain changed files since date

So, I have a directory with lots of sub-directories Something like... main main/folder1 main/folder2 main/folder2/otherfolder1 main/folder2/otherfolder2 etc... Is there an easy way for me to ...