• 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: Getting the Documents Folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the Documents Folder


  • Subject: Re: Getting the Documents Folder
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 14 Mar 2002 10:26:24 -0800

On 3/14/02 10:00 AM, "Gnarlodious" <email@hidden> wrote:

> Entity Paul Berkowitz spoke thus:
>
>>> Now I am saying:
>>>
>>> tell application "Finder"
>>> set identityList to every folder of folder ,
>>> "Apple:Documents:Microsoft User Data:Identities:";
>
>> alias ((path to startup disk as string) & "Documents:")
> OK, so I am saying:
> set identityList to every folder of alias ((path to startup disk as string)
> & "Documents:Microsoft User Data:Identities:";)
>
> which gives:
> Finder got an error: Can't get alias "Apple:Desktop
> Folder:Documents:Microsoft User Data:Identities:";.
>
> when what I need is:
> {
> folder "Rachel Cogent" of folder "Identities" of folder "Microsoft User
> Data" of folder "Documents" of startup disk of application "Finder"
> }
>

If you said that this was in a Finder tell block I missed it. The Finder
sometimes screws up 'path to', mixing up the startup disk and the desktop
(although I've only ever seen it the other way around before). Never use
'path to' in the Finder. Ever.


I would do the path part outside the Finder:

set identitiesPath to ((path to startup disk as string) &
"Documents:Microsoft User Data:Identities:";)


tell app "Finder"
set identityList to every folder of folder identitiesPath
end tell

--
Paul Berkowitz
_______________________________________________
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.

  • Follow-Ups:
    • Re: Getting the Documents Folder
      • From: Gnarlodious <email@hidden>
References: 
 >Re: Getting the Documents Folder (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: Getting the Documents Folder
  • Next by Date: Re: Getting the Documents Folder
  • Previous by thread: Re: Getting the Documents Folder
  • Next by thread: Re: Getting the Documents Folder
  • Index(es):
    • Date
    • Thread