• 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: Axel Luttgens <email@hidden>
  • Date: Tue, 19 Nov 2002 16:03:15 +0100

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.

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

  • Prev by Date: Aliases in paths not resolved....????
  • Next by Date: Re: ASLG updated, slightly
  • Previous by thread: Aliases in paths not resolved....????
  • Next by thread: Re: Aliases in paths not resolved....????
  • Index(es):
    • Date
    • Thread