• 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: Modifying aliases...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modifying aliases...


  • Subject: Re: Modifying aliases...
  • From: mjn <email@hidden>
  • Date: Wed, 20 Mar 2002 10:36:08 -0600

Revisiting...

I have an alias. I want to retarget that alias using Applescript.

Say I have "My Alias" which points to "startup disk:folder 1:myfile"

I want to be able to modify where that alias points to (and verify it is
attached?).

I would like to write something which would look at some pairs of values,
like these:

startup disk:folder 1:, startup disk:folder 2:
startup disk:folder 2:, volume 1:folder 1:

And examine and change an alias based on those pairs.

So "My Alias" points to "startup disk:folder 1:myfile" but I'd like the
script to change the target of "My Alias" to "startup disk:folder 2:myfile"
or, if "My Alias" pointed to "startup disk:folder 2:myfile", the script
would point it to "volume 1:folder 1:myfile", for example.

The problem I am having is I am trying to set a variable to my_file's
original item as (text|string|list) and it is not giving me the original
item's path like I want it too; my guess is I am trying to get the wrong
value or trying to get it incorrectly.

Someone suggested previously that I use some additions but the problem is
that this script will be run from a mounted volumne and on several different
OS versions so I need it to be self-contained.

Anyone have suggestions? Thanks mucho.

-mjn
_______________________________________________
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:
    • Stumped with open file
      • From: "Leif E. Wells" <email@hidden>
References: 
 >Modifying aliases... (From: mjn <email@hidden>)

  • Prev by Date: Re: AppleScript Language Guide [ASLG] (was Beginners question)
  • Next by Date: Re: Set value of FileMaker container?
  • Previous by thread: Modifying aliases...
  • Next by thread: Stumped with open file
  • Index(es):
    • Date
    • Thread