• 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
Alias Switches allegiance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Alias Switches allegiance
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: Acrobat Form Data
  • Next by Date: Re: XML parsing from AppleScript
  • Previous by thread: Re: Acrobat Form Data
  • Next by thread: Re: Alias Switches allegiance
  • Index(es):
    • Date
    • Thread