• 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: Resolving an alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resolving an alias


  • Subject: Re: Resolving an alias
  • From: Thomas Fischer <email@hidden>
  • Date: Fri, 30 Oct 2009 16:34:17 +0100

Sander,

[...]

If somebody drops anything on your AppleScript app, your on handler
receives a list of aliases and I was wondering how I could decide if
they were files, folders or anything else.

tell me info for someAlias end

No, this doesn't quite do what I need, unless I go into some additional analysis of the info record I get. I get a folder flag, but would need to check if the alias is e.g. for a file or an internet location. And it definitely doesn't give me a hold of the original file.


Deivy's method

tell application "Finder" to class of (get properties of l)

gets the correct class if this is all I need.

Thomas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Resolving an alias
      • From: Roger Howard <email@hidden>
    • Re: Resolving an alias
      • From: Emmanuel LEVY <email@hidden>
References: 
 >Resolving an alias (From: Thomas Fischer <email@hidden>)
 >Re: Resolving an alias (From: Sander Tekelenburg <email@hidden>)

  • Prev by Date: Re: Unzip multiple items Applescript-terminal syntax help!
  • Next by Date: Re: Resolving an alias
  • Previous by thread: Re: Resolving an alias
  • Next by thread: Re: Resolving an alias
  • Index(es):
    • Date
    • Thread