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
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

applescript help


Post Reply New Thread Subscribe

 
Thread Tools
Conehead778

 
Conehead778's Avatar
 
Member Since: Jun 10, 2005
Posts: 181
Conehead778 will become famous soon enough
Mac Specs: Imac G5 17 inch w/ 1 gig of ram, 6 gb ipod mini, and 12" Powerbook G4

Conehead778 is offline
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!
QUOTE Thanks
surfwax95

 
surfwax95's Avatar
 
Member Since: Aug 27, 2005
Location: Fayetteville, AR
Posts: 2,410
surfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud of
Mac Specs: 15" Powerbook G4 24" iMac iPhone 3Gs

surfwax95 is offline
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."

I try to Command+Shift+/ when I can.
They're - Their - There | Two - Too - To | You're - Your | MAC - Mac
I was on the M-F honor roll for October, 2006.
QUOTE Thanks

Post Reply New Thread Subscribe


« Time based events | Need a Programmers Help »
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

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Simple AppleScript request... 570thusaag Running Windows (or anything else) on your Mac 0 02-02-2006 01:33 PM
Terminal and Applescript bigpixl OS X - Development and Darwin 0 08-09-2005 01:34 PM
[ANN] New comprehensive AppleScript book hanaan OS X - Development and Darwin 0 11-06-2004 08:28 PM
Applescript to login to school network? mkko OS X - Operating System 0 10-07-2004 08:38 AM
Looking for AppleScript help tommyabroad OS X - Operating System 2 04-14-2004 01:51 AM

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

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

Welcome to Mac-Forums.com

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?