• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: can't get it to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >can't get it to work (From: Robert Cerny <email@hidden>)

  • Prev by Date: RE: Unicode characters
  • Next by Date: Re: Using Applescript To Dial a Phone Number Mac OS X
  • Previous by thread: can't get it to work
  • Next by thread: Re: can't get it to work
  • Index(es):
    • Date
    • Thread