• 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: alias is folder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alias is folder?


  • Subject: Re: alias is folder?
  • From: matt neuburg <email@hidden>
  • Date: Sun, 27 Apr 2003 19:12:09 -0700

On 4/27/03 at roughly 9:58 PM, thus spake Christopher Nebel
<email@hidden>:

>Of course, it won't work unless you run in English. For example, in
>French, the kind of myAlias is "Dossier".

Ouch! :)

>A more reliable approach is
>this:
>
> tell application "Finder"
> get class of item myAlias --> folder
> end tell

Very nice, thank you. I'm not sure I understand why this works. I guess
what's happening is that we're coercing the alias to an item, then asking
for its lowest-level class (which is why we get folder, not item). Is that
right? If so, is there a similar way to ask if myAlias is a container? m.

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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: 
 >Re: alias is folder? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: TIDs and other questions
  • Next by Date: Re: OSX EightyRes ?
  • Previous by thread: Re: alias is folder?
  • Next by thread: Re: alias is folder?
  • Index(es):
    • Date
    • Thread