• 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: Ben Waldie (AppleScript Guru) <email@hidden>
  • Date: Tue, 19 Nov 2002 08:07:13 -0500

Sam,

On Tuesday, November 19, 2002, at 05:22 AM, Sam Griffith wrote:

> 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?

Give this a try...

set theAliasPath to (((path to "cusr") as string) & "MyDevelopment") as
string

tell application "Finder"
set thePath to ((original item of alias theAliasPath) as string)
end tell
set theAlias to (thePath &
"MyScripts:AppleScripts:scriptsCallingScripts:callme") as alias

Thanks,

- Ben

Benjamin S. Waldie
AppleScript Guru

http://www.applescriptguru.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: 
 >Aliases in paths not resolved....???? (From: Sam Griffith <email@hidden>)

  • Prev by Date: AppleScript 1.6 and Mac OS 8.6 - SOLVED
  • Next by Date: Re: Aliases in paths not resolved....????
  • Previous by thread: Re: Aliases in paths not resolved....????
  • Next by thread: Re: Aliases in paths not resolved....????
  • Index(es):
    • Date
    • Thread