Header Banner
WonderHowTo Logo
WonderHowTo
AppleScript World
wonderhowto.mark.png
Gadget Hacks Next Reality Food Hacks Null Byte The Secret Yumiverse Invisiverse Macgyverisms Mind Hacks Mad Science Lock Picking Driverless

How to Play things backwards with the help of AppleScript

Jul 18, 2008 12:33 AM
Screenshot of a computer screen displaying code in a programming environment.

Today, in this video, you're going to learn how to make a simple program that can allow you to play stuff backwards, like a song, with Xcode and AppleScript on your Mac OS X computer. This application will be well worth showing off to your friends.

Code:

on clicked theObject

start progress indicator "Spinner" of window 1

set my_track to choose file set volume 7

--second, open QuickTime and start playing

tell application "QuickTime Player"

close every window

open my_track

set my_movie to first document

set ts to time scale of my_movie

set current time of my_movie to 60 * ts

--start playing backwards

set rate of my_movie to -1

end tell

stop progress indicator "Spinner" of window 1

end clicked

URL Preview
Play things backwards with the help of AppleScript

Click through to watch this video on youtube.com

External Content
www.youtube.com

You already know how to use your phone. With Gadget Hacks' newsletter, we'll show you how to master it. Each week, we explore features, hidden tools, and advanced settings that give you more control over iOS and Android than most users even know exists.

Sign up for Gadget Hacks Weekly and start unlocking your phone's full potential.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!