Jul 29

I tend to listen to Podcasts (one of the best is MacBreak Weekly) while I work. But when my wife starts talking to me from the other room, I have to stop what I’m doing to navigate to iTunes just to click Pause. It finally reached a level of annoyance that made me fired up Script Editor and throw together a little script to do it for me. This is just about as simple an Apple Script as you can get:
tell application “iTunes”
playpause
end tell
Now, just save it as an application and bind it to some key you’re not using. I used one of the buttons on my Wacom Tablet. One key press and the podcast will either pause or play depending upon its current state.
It’s so great that Apple included a little hook for the Pause/Play function. This is yet another great feature of OSX. If something’s missing that you really want it to do, chances are that a short Apple Script or Automator Action can remedy the situation.
I think this little trick will hold me over until that new keyboard sees the light of day.
Technorati Tags: Apple, AppleScript, Mac, Programming, iTunes, Tip
Nov 12
Here’s a quick Automator script to pull all of the image links in the frontmost Safari window into iPhoto. I use this when I stumble across a web page with great photos I want to add to my gallery.
Notice that what this script does is download to the desktop and then import to iPhoto. After completion, it deletes the originals from the desktop. This way I am sure to get the full resolution images rather than the lower resolution web thumb nails
Technorati Tags: Apple, Automator, iPhoto, Mac, Productivity, Programming, Tip, Trick
Sep 23
I use a lot of Applescript when I use my Mac. I’ve learned quite a bit about the language over the years. Needless to say that it makes me a little snobby about using Automator. For the most part, I hate automator because it is so limited. What it has is pretty much all you get to do. However, once in awhile I gain an added appreciation for its simplicity. Here is an Automator “script” that takes a screenshot and then places the screen shot in my blog photos library within iPhoto. I’m sure if I worked long enough I could have come up with an Applescript to do it, but Automator allowed me to do it in about 10 seconds of work. Here it is (and yes, I used this automator “script” to take the screenshot)

Technorati Tags: Apple, Mac, OSX, Programming, Automator, Software
Recent Comments