AppleScript is a proprietary programming language in Mac OS X to control and exchange data with applications.
1
vote
1answer
680 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 ...
1
vote
2answers
262 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
3answers
345 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
203 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 ...
1
vote
2answers
621 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
2answers
536 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 ...
1
vote
2answers
2k views
How do I do custom key binding in iTunes?
How would I assign
⌘1 to Music (Library item)
⌘2 to Movies
⌘3 to Podcasts
Surprisingly enough, these key bindings are not assigned to anything yet, and IMO they would be most convenient ones ...
1
vote
1answer
157 views
How to create Automator Service to change font of selected text?
I'm trying to create a "Service" in Automator that changes the font of the selected text in the frontmost app.
1
vote
2answers
123 views
Applescript to compare two lists of domains and eliminate duplicates
I tried to do this with Automator and found it...lacking. I have tried to look for solutions everywhere else I can think of, but my searches keep pointing me to Applescript as the only available ...
1
vote
1answer
100 views
troubleshoot applescripted typing missing shift key and numerics in windows xp under parallels 8?
I am using a Windows XP VM with Parallels 8 under Mountain Lion. I have a remote desktop connection from XP that does not allow pasting from the clipboard, but typing works, of course. I have an ...
1
vote
1answer
140 views
Automator finish one task before moving on?
I have automator running several applescript commands that I want to happen sequentially. For example, I have an empty trash command, then a shut down command. When I run the script, the computer ...
1
vote
2answers
331 views
How can I automatically run an AppleScript on shutdown or logout?
I am more used to the Javascript style event handlers,
but is there a similar thing in applescript that listens to system events like logout or shutdown to execute code
or is there a way to have an ...
1
vote
2answers
207 views
Automatically move files into correct folder on server
I often need to move files from one location on a server into a set of hierarchical folders.
The filenames are usually 7 digits long - sometimes with some extra characters at the end.
The folders ...
1
vote
1answer
128 views
F.lux does not always work on resolution changes. Is there a way to check if the resolution changes?
I'm a happy user of f.lux, but sometimes when I plug in my external monitor on my macbook air it returns to full brightness. This also sometimes happens if I unplug my external monitor and switch to ...
1
vote
1answer
161 views
How to replace images in iPhoto with higher quality versions?
I use Aperture for photo editing and processing, but prefer iPhoto for keeping a gallery of my pictures. For a long time, I used the built-in tools in iPhoto to "Import from Aperture Library". What I ...
1
vote
2answers
217 views
How can I reproduce the Finder sort order without asking Finder to sort for me?
I work with a large collection of mostly-text files subdivided by series, periodically mirroring them from an upstream repository and repackaging them using a shell script from a slightly chaotic ...
1
vote
1answer
574 views
Using UI scripting to enter text in a file dialog
I am very, very new to using AppleScript. I need to enter text into the search box. So far the script looks like this:
on run {input, parameters}
tell application "myApplication" to activate
...
1
vote
2answers
1k views
Change Date Created based on the filename
I've downloaded a bunch of my Instagram images but the Date Created of the files is set to the time that I initiated the download. What I do have though is the Date Created in the filename. What I ...
1
vote
1answer
376 views
Insert images into Pages document using AppleScript
I'm trying to automate the construction of a document, and am looking for a way to insert images into a Pages document with AppleScript. For example:
tell application "Pages"
make new document
...
1
vote
1answer
114 views
How can I remove the Job Title and Company from all Address Book contacts using AppleScript?
I would like to remove the Job Title and Company from every contact in my address book using AppleScript.
Any ideas?
1
vote
2answers
590 views
Automate PDF actions
To improve my paperless workflow, I'm looking to achieve the following, potentially using automator / applescript. I need to be able to run it using Hazel, or as a folder action (not run manually):
...
1
vote
1answer
539 views
Ejecting USB drive via AppleScript does not make drive power down
On startup, I eject my external USB disks with the following AppleScript:
try
do shell script "diskutil eject \"/Volumes/USB Backup\""
end try
This works as expected: the drive powers down. ...
1
vote
2answers
444 views
How do I set podcast release date in iTunes using Applescript?
I would like to add the release date to podcasts that I've imported into iTunes, but my applescript is returning an error about the date object.
tell application "iTunes"
set theSelection to ...
1
vote
1answer
160 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 ...
1
vote
1answer
204 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
1answer
504 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
324 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 ...
1
vote
2answers
1k 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 ...
1
vote
1answer
160 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
117 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 ...
1
vote
1answer
347 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 ...
1
vote
1answer
304 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 ...
1
vote
1answer
550 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 ...
1
vote
1answer
149 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. ...
1
vote
3answers
575 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 ...
1
vote
2answers
244 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 ...
1
vote
2answers
107 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 ...
1
vote
1answer
403 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 ...
1
vote
2answers
328 views
How can one invoke a keyboard shortcut from within an AppleScript?
I need to invoke a keyboard shortcut from within an AppleScript code, later to be used as a startup item (i.e. the alternative to having to press something at every log in).
1
vote
0answers
21 views
How to create an apple script that forwards a flagged email
I want to create an apple script that will forward a flagged email to x@mail.asana.com
I have tried this script:
on run
tell application "Mail"
repeat with _acct in imap accounts
...
1
vote
0answers
14 views
Ruby and osx, clipboard status detection
My question: is it possible to detect when clipboard was pasted into other app ?
With use of RubyMotion, Macruby, or Apple Scripts maybe ?
1
vote
0answers
41 views
Can I find and replace Core Text/Cocoa text strings in any application?
My scenario:
I use an app called Antetype for UI design.
Antetype uses OS X-native technologies for text rendering (it uses the system-standard text palette).
Antetype does not have a find and ...
1
vote
0answers
87 views
Can a new mail be sent using AppleScript + Outlook + IMAP?
I'm trying to use apple script to automate creation of a new outlook mail message.
The below code will work when I have my email account sent up as pop3 but I need it to work with an IMAP account.
...
1
vote
0answers
29 views
Touching files in correct order
This code touches files in alphabetical order.
I need to touch files in order it is in list_of_files, so first it touches file2, then file3, then file1).
Is there any other way to do this than to ...
1
vote
1answer
35 views
How to get inode from alias file?
In this MacWorld forum thread aliases are described as
Aliases can reference an object in the file system either by a
persistent ID or by path. Generally they will contain both
pieces of ...
1
vote
0answers
46 views
Have OS X auto-search for WiFi
My school has installed PowerCloud, which does not officially support OS X. It works sometimes, sometimes it doesn't. I've tried to narrow it down but it's impossible. I was wondering if there is a ...
1
vote
2answers
132 views
Alfred extension or equivalent that brings a single window to the forefront
Right now, if I want to switch to a Sublime Text 2 window open to a "project" called foo, I can do option+space, type Sub hit enter and then hit cmd+` repeatedly until I arrive at the window I want.
...
1
vote
1answer
261 views
Automator -> send file to email (from filename)
Im trying to create an Automator folder action that sends an email with an attached file.
In my folder the files will be generated with the email as name:
Example: name@company.com.jpg, ...
1
vote
1answer
70 views
Checking button text with applescript
I'm trying to automate CCleaner, so far I can start the application and click the button that starts the cleanup job, however I'm relying on a delay to determine when I should move onto the next ...
1
vote
1answer
136 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 ...