Re: How to convert Finder reference?
Re: How to convert Finder reference?
- Subject: Re: How to convert Finder reference?
- From: mark <email@hidden>
- Date: Fri, 12 Dec 2003 08:39:58 -0800
on 12/11/03 2:25 PM, Michelle Steiner at email@hidden wrote:
>
On Dec 11, 2003, at 2:52 PM, Mark Dawson wrote:
>
>
> I want to convert a Finder reference to a string
>
> (duplicate x; set z to the result as string)
>
>
This works for me:
>
>
tell application "Finder"
>
set x to item 1 of (the selection as list)
>
duplicate x
>
set z to the result as string
>
end tell
>
>
-- Michelle
That seems to be what I'm doing:
duplicate theFile
set newFile to the result as string
However, I'm get an error, "Can't make <<class docf>>"x copy.premier" of
<<class cfol>> "Output" ... (file path) ... of application "Finder" into a
string
I'm getting "theFile" from this line:
set theFile to (choose file with prompt "pick")
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.