Re: can't get it to work
Re: can't get it to work
- Subject: Re: can't get it to work
- From: Andrew Oliver <email@hidden>
- Date: Tue, 08 Apr 2003 15:24:53 -0700
1) "/Users/rcerny/Desktop/In" is already a POSIX path, so I don't see why
you're trying to coerce it to one.
2) The Finder doesn't deal with POSIX paths, it deals with Mac OS paths
(':'-delimited).
3) 'selection' returns a list. I don't think you can move a list to a posix
path (which is a form of string object). Instead you need to coerce the
destination to a folder. Try something more like:
set dest to path to desktop - object- the 'safe' way of determining the
desktop
tell application "Finder"
try -- catch errors
move selection to folder theDest
on error
-- something didn't work - nothing selected, maybe?
end try
Andrew
:)
On 4/8/03 4:48 AM, "Robert Cerny" <email@hidden> wrote:
>
Hi folks,
>
this little snippet is driving me nuts! Could anyone help?
>
>
Thanks
>
Robert
>
>
tell application "Finder"
>
set theResult to POSIX path of "/Users/rcerny/Desktop/In"
>
activate
>
move selection to theResult
>
end tell
>
_______________________________________________
>
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.
_______________________________________________
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.