New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Switcher Hangout The place for switchers to discuss their new machines, and how to work with OS X. General support can be had here for newbie stuff, like "How do I restart my new iMac?" :)

apple script

Post Reply New Thread Subscribe

Thread Tools

Member Since: Nov 20, 2011
Posts: 1
castor is on a distinguished road

castor is offline
I need a script that tells quicktime to open the second file from a specific folder (in a loop) when a new movie is being saved in that same folder.

the problem is that i don't know how to write the script that says, execute a new action when a new file is saved in this folder.

is there any script for this?


tell application "Finder"
sort (get files of folder sourceFolder) by creation date
set theFile to (item 2 of result) as alias
end tell

tell application "QuickTime Player 7"
open theFile
present document 1
delay 1
if done of front document then
exit repeat
end if
end repeat
end tell
QUOTE Thanks

Post Reply New Thread Subscribe

« Copy file | Connect 2 Macs to HDTV »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 06:18 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?