Re: How to convert Finder reference?
Re: How to convert Finder reference?
- Subject: Re: How to convert Finder reference?
- From: Michelle Steiner <email@hidden>
- Date: Fri, 12 Dec 2003 09:46:25 -0700
On Dec 12, 2003, at 9:39 AM, mark wrote:
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")
I just tried it, and it works for me.
set theFile to (choose file)
tell application "Finder"
duplicate theFile
set newFile to the result as string
end tell
--> "Dora:Users:michelle:Desktop:Dock Effects copy.app"
--
We're not human beings having a spiritual experience.
We're spiritual beings having a human experience.
_______________________________________________
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.