Re: wait for Quicktime X export
Re: wait for Quicktime X export
- Subject: Re: wait for Quicktime X export
- From: "Stockly, Ed" <email@hidden>
- Date: Tue, 22 Dec 2009 19:05:51 -0800
- Thread-topic: wait for Quicktime X export
> I don't really understand this file-alias-path difference, even after reading
the documentation.
Let's start there...
"disk:Folder:file"
That's the format for a path. It is a string that describes a the location
of a file (or folder).
To address the file or folder you need to identify it to the application:
Tell application "System Events"
set foo to File "disk:Folder:file"
set foo to item "disk:Folder:file"
set foo to folder "disk:Folder:folder:"
End tell
The "File" , "item" , "Folder" is required, other wise you're simply
pointing to a string of text.
Aliases are applescript objects that are created using the system's method
for generating aliases in the User interface.
If you try to compile:
alias "disk:Folder:file"
That will fail if the file does not exist at compile time.
Similarly, if you try this:
Set myFile to "disk:Folder:file"
Set myFile to "disk:Folder:file" as alias
It will compile even if the file is not there at compile time, but will
error if the file is not there at runtime.
> System Events got an error: Can't get alias "disk:karelbilek:movie.avi.mov".
(-1728)
How is that path being generated? Is it possible it's a POSIX path changed
to an HFS path? If so, that could be the problem.
> so I thought there is a brief time before exporting, when the file
> does not exist,
You'll get the same error if the file is not there or if the path is not
valid.
> Can't get physical size of "disk:karelbilek:movie.avi.mov". (-1728)
Unless you have a directory named: "disk" then you don't have a valid
reference.
So, where is the value for name_of_mov_file coming from?
If it's a posix path, you need to work with that appropriately.
ES
_______________________________________________
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