• 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: Aliases in paths not resolved....????
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Aliases in paths not resolved....????


  • Subject: Re: Aliases in paths not resolved....????
  • From: Rob Jorgensen <email@hidden>
  • Date: Tue, 19 Nov 2002 16:47:36 -0500

At 4:03 PM +0100 11/19/02, Axel Luttgens wrote:
Sam Griffith wrote:

Help,

I have a script that creates a path to a folder.

set theAlias to (((path to "cusr") as string) & "MyDevelopment:My
Scripts:AppleScripts:scriptsCallingScripts:callme") as alias


The issue is that the "MyDevelopment" folder is actually a alias to the
folder on another disk.

How do I get this to resolve correctly, so that AppleScript sees my file?

Right; there is no real equivalent to link(s) resolution during unix path parsing.
So, you have to resolve the alias yourself.
One way that to do this is to use the "original item" property of Finder's alias file class; something like this:

tell application "Finder" to
set myDevPath to original item of
alias (((path to "cusr") as string) & "MyDevelopment")
as alias as string

should do the job.
You could then use the resulting string as you did above.

When I tried "original item of" on an alias for an unmounted volume, it returned nothing (or missing value or "" - I don't recall). -- OS X 10.2.2 --

--

Rob Jorgensen
Ohio, USA
_______________________________________________
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: 
 >Aliases in paths not resolved....???? (From: Sam Griffith <email@hidden>)
 >Re: Aliases in paths not resolved....???? (From: Axel Luttgens <email@hidden>)

  • Prev by Date: How does osascript decide which app to use?
  • Next by Date: Folder Attachment
  • Previous by thread: Re: Aliases in paths not resolved....????
  • Next by thread: Re: Aliases in paths not resolved....????
  • Index(es):
    • Date
    • Thread