Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Alias Switches allegiance



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.