applescript help

Joined
Jun 10, 2005
Messages
181
Reaction score
5
Points
18
Your Mac's Specs
Imac G5 17 inch w/ 1 gig of ram, 6 gb ipod mini, and 12" Powerbook G4
Hey guys im trying to have a script that converts my .mov's to mpeg4. I have a script that converts them the only problem is i cant seem to get it to take on the settings i would like it too

tell application "QuickTime Player"
activate

try
if not (exists movie 1) then error "No movies are open."

stop every movie

set the movie_name to "mytest.mp4"
if (can export movie 1 as MPEG4) is true then
set thesettings to "Macintosh HD: johndoe: Desktop: set1test"
set the new_file to ¬
choose file name with prompt "Enter a name:" default name movie_name
export movie 1 to new_file as MPEG4 using settings thesettings

end if

end try
end tell
This is my script notic the "thesettings" part is trying to call on a file that was suppossed to be the export settings saved. If anyone can help I would appreciate it!
 
Joined
Aug 27, 2005
Messages
2,406
Reaction score
210
Points
63
Location
Fayetteville, AR
Your Mac's Specs
15" Powerbook G4 • 24" iMac • iPhone 3Gs
Try changing this line:

Macintosh HD: johndoe: Desktop: set1test

to this:

Macintosh HD: Users: JohnDoe: Desktop: set1test

:mac:

Also, you may want to change this line:

if not (exists movie 1) then error "No movies are open."

to this:

if not (exists movie 1) then display dialog "No movies are open."
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top