Re: Quicktime export using settings file problem
Re: Quicktime export using settings file problem
- Subject: Re: Quicktime export using settings file problem
- From: Luther Fuller <email@hidden>
- Date: Tue, 10 May 2011 15:30:43 -0500
On May 10, 2011, at 2:51 PM, Jim Weisbin wrote: On May 10, 2011, at 3:00 PM, Luther Fuller < email@hidden> wrote Would this help ...
set the_settings_file to (path to me as text) & ":Contents:Resources:settings-16-9.set"
I got it working, but I'm confused as to why. I was setting a global variable to "(path to me) & ":Contents:Resources:settings-16-9.set" outside of the run block (turns out it was the run block, not the process block, that was the issue). Then I did the export within the run block using that variable as the settings file. The export happened and QT didn't throw any errors, but it didn't use the settings file.
When I moved the statement "export...using settings file..." to inside the run block, then it worked fine.
'path to ...' always returns an alias. Concatenating an 'alias' followed with 'text' may be confusing to AppleScript. You could also do this ...
property the_settings_file : alias ((path to me as text) & ":Contents:Resources:settings-16-9.set")
export to new_file as QuickTime movie using settings the_settings_file
I'm curious what application you are telling to export ?
|
_______________________________________________
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