Tagged Questions
0
votes
1answer
18 views
Using AppleScript to modify contacts not working
I'm trying to use applescript to clean up various problems a large address book, to large to fix by hand. I've been able to find and observe contacts and groups in AppleScript successfully. However, ...
0
votes
0answers
58 views
AppleScript works fine in 10.8 but not in 10.7
I have a simple AppleScript that works perfectly on two ML machines (10.8.3), but when I try to run it on a 10.7.5 machine it doesn't work. To make matters more confusing, in 10.7.5 it runs in the ...
0
votes
1answer
50 views
how to auto download a certain attachment in mail
I have looked on stack exchange and other sites for a simple applescript. I have found more complex scripts that it's hard for me to understand (not knowing a lot about the applescript syntax). So, ...
0
votes
0answers
16 views
Is there a way to omit certain directories from where Mac OSX finds applications for its Applescript dictionaries et al?
Mac OSX maintains a list of applications for Applescript dictionaries, for the open-with list in finder etc.
This list gets collected from local directories (e.g. /Applications) but it finds as well ...
1
vote
1answer
140 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, switch ...
2
votes
1answer
412 views
Activating Mountain Lion screen saver from Applescript, part 2
This example was shown earlier:
tell application "System Events"
set ss to screen saver "Random"
start ss
end tell
Is there an incantation instead of "Random" to display a slideshow from ...
0
votes
1answer
2k views
Automatically Save Attachments in Mail.app in 10.8 Mountain Lion
I am trying to automatically save all email sent to one address (let's call it test@example.com) to this folder /Users/luomat/Dropbox/Incoming/e2w/ (where /Users/luomat = $HOME).
Here is the rule ...
-1
votes
1answer
238 views
Applescript opens new window for everything when run
I have the following code I did for a tweetbot keyboard shortcut to open tweetbot and create a new tweet.
on run {input, parameters}
activate application "Tweetbot 2"
tell application ...
3
votes
1answer
182 views
AppleScript/Automator Workflow to restore OS X to “mint” condition
Under Mountain Lion, I wanted to create an AppleScript that would essentially restore my OS X install to "mint" condition, if possible even to the point of showing you the ML welcome screen asking you ...
2
votes
1answer
181 views
AppleScript SL to ML Issue (compatibility error?)
I've written the following script in Applescript in Snow Leopard, and I tried to use it in Mountain Lion, but to no avail (doesn't work). The script watches a folder for added files, and if the ...
5
votes
2answers
444 views
How to disable individual USB ports by script?
I am looking for a script which will allow me to disable one specific USB port on my Mac mini. It would only serve a purpose if it works in real-time and didn't require a reboot. I've found scripts ...
8
votes
3answers
5k views
iCal No Longer Runs Scripts?
I have some automated tasks in the form of AppleScripts which I would schedule to run overnight via an iCal event. The event would simply be set to "run script" at "0 minutes before the event" and ...
10
votes
6answers
4k views
How to set screen resolution with a keyboard shortcut on Retina MBP?
I've found myself switching between the 1440x900 and 1920x1200 "effective resolution" setting depending on what I'm doing (need more space on screen, etc).
Is there a way to toggle between these two ...
3
votes
2answers
1k views
How can I bring a window to frontmost without focusing it using Applescript in OS X 10.8
I want to bring a window (QuickTime for example) to frontmost, without focusing it. I can do it in OS X 10.7 using the following code in Applescript.
tell application "System Events"
set visible ...
4
votes
2answers
2k views
Activating screen saver from AppleScript in Mountain Lion
I had a script that I used to use to activate my screen saver, and it no longer works in Mountain Lion.
It was a shell script that called an AppleScript script:
#!/bin/bash
osascript ...
29
votes
3answers
13k views
How can I trigger a Notification Center notification from an AppleScript or shell script?
I'd love to be able to take advantage of 10.8's Notification Center features in AppleScripts and shell scripts I write.
Is there a built-in command or a third-party library I can use from either an ...
