Quicktime can't get focus while Applescript has dialog box open
Quicktime can't get focus while Applescript has dialog box open
- Subject: Quicktime can't get focus while Applescript has dialog box open
- From: Jim Weisbin <email@hidden>
- Date: Wed, 26 Sep 2007 15:06:32 -0400
I've got a script which will copy a small movie and paste it in place of the start of the current (open) movie up to the wiper position. This of course require the user to open the movie, position the wiper to the frame he wants, and then run the script. Now I want to be able to batch process the job. I now have a script that opens a folder or all files dropped onto it, opens each movie in turn, and prompts the user to move the wiper. From there the rest is easy. The problem is that, once I stop with a dialog or alert to ask the user to position the wiper, I can't think of a way to give the focus back to Quicktime so the user can move the wiper, and then back to the dialog box so he can click to continue. Anyone know how this can be done?
Here's the bit I'm speaking of. "My_file" is the bit that will always be pasted on (actually it's our logo with 2 seconds of black).
tell application "QuickTime Player" open this_item set file_name to the name of (info for this_item)
-- problem - can't give the focus back to Quicktime?
display dialog "Please set the first frame for the movie " & file_name buttons {"Cancel", "OK"} default button 2 set the button_pressed to the button returned of the result if the button_pressed is "Cancel" then error number -128 rewind set the current time of document 1 to (current time of document 1) + 1 open my_file -- process the file here
end tell
Jim Weisbin human 138 5th avenue. 3rd floor, nyc, ny 10011 telephone 212 352 0211 mobile 917 470 8326 fax 212 352 0210
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden