Bugging ya'll again...
Bugging ya'll again...
- Subject: Bugging ya'll again...
- From: mjn <email@hidden>
- Date: Wed, 27 Mar 2002 08:11:49 -0600
Trying to change the target of an alias and still having some
issues...looking for advice.
I have given up on trying to modify the alias directly and instead I will
just create new aliases for the files with a modified "original item" path.
So let's look at our example then:
I have an alias called "Doc1" which points to "Server1:Folder1:Folder:Doc1".
I also have an alias to "Doc2" which points to
"Server1:Folder2:AnotherFolder:Doc2"
Once our data move is complete, Doc1 will be located here:
"Server2:Folder1:Folder:Doc1"
Doc2 is located here: "Server3:AnotherFolder:Doc2"
My plan is to grab the "original item" value from the alias and pull out the
first level of the structure (Server1) and examine it, if the first element
matches "Server1" hang on to it, otherwise don't pay attention to it.
Next the scripts deletes all of the aliases which matched the criteria, the
rest go untouched.
So the $10 question is: how do I grab the "original item" as a string,
modify it and replace the proper stuff, and then create a new aliases in the
same location with the same name and the new "original item" value. The
other solution I've thought of is just to delete any aliases which reference
the old server but it'd be much more friendly to just replace them with
working ones...
Help is much appreciated...
-mike
_______________________________________________
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.