Alias Switches allegiance
Alias Switches allegiance
- Subject: Alias Switches allegiance
- From: Adam Bell <email@hidden>
- Date: Mon, 22 Jan 2007 12:09:10 -0400
Title: Alias Switches allegiance
I'm confused about the rules for an alias. If I comment out the
two indicated lines, BBEdit opens the file Test2; the one I moved and
renamed -- expected behavior.
If I run the two lines, i.e. create a new file with the same name
as the original in the same place the original was, then BBEdit opens
the new one -- i.e. the alias has switched back.
What are the rules here?
-----
set F to alias ((path to desktop as text) &
"Test")
set fld to alias ((path to desktop as text) &
"TestF:")
tell application "Finder"
move F to folder fld
set name of F to
"Test2"
end tell
-- Try with and without the following two lines -- i.e. replace
the original.
set N to open for access ((path to desktop as text) &
"Test")
close access N
-- end trial
tell application "BBEdit" to open F
-----
Adam
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden