In article
<0372b4cc-4a02-4e0e-9259-8894d227b9ef@[EMAIL PROTECTED]
>,
Jason8 <jason.leach@[EMAIL PROTECTED]
> wrote:
> property i: "path\to\my\image.tiff"
POSIX paths use the forward slash character (/) for a delimiter - not
the backwards slash character (\) as you've used above.
Also, in AppleScript, most applications that accept paths expect the
paths to be HFS paths, which use the colon character (:) as a delimiter,
and use a slightly different method of specifying the start (or root) of
the path. To convert a POSIX path to an HFS path, use the "POSIX file"
command:
set posix_path to "/Library"
set hfs_path to POSIX file posix_path
To convert a HFS path to a POSIX path, use the "POSIX path" property:
set hfs_path to choose file
set posix_path to hfs_path's POSIX path
Enjoy.
--
Please send all responses to the relevant news group. E-mail sent to
this address may be devoured by my very hungry SPAM filter. I do not
read posts from Google Groups. Use a real news reader if you want me to
see your posts.
JR


|