• 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: Path To blessed items (OSX and OS9): Odd or Normal?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Path To blessed items (OSX and OS9): Odd or Normal?


  • Subject: Re: Path To blessed items (OSX and OS9): Odd or Normal?
  • From: Rob Jorgensen <email@hidden>
  • Date: Sat, 21 Jun 2003 08:59:24 -0400

At 12:43 AM +0100 6/21/03, John Delacour wrote:
At 2:03 pm -0400 20/6/03, Gary Lists wrote:

....There is a difference, however. OHM, if he moves one of the undesirably
created folders to the trash, then runs the script again, the result is an
alias which points to the item in the trash (with no additional creation.)

OMM, OS9.1, moving the item to the trash and running the script creates
another new item, disregarding the one in the trash.

I think this is a bug in the OS X Finder. It has problems with the cache, in other instances too. I don't know how to formulate a report for the bug or I would do so. If you log out and come back the behaviour will change.

I feel that this is the part of the issue that is most likely to bite someone (OS X), or at least cause a WTF moment.

For whatever reason, user has moved their "Public" folder to the Trash. If they run a script that contains:

set pub to path to "pubb"
--> alias "Mac HD:Users:user:.Trash:Public:"

tell application "Finder" to make new folder at pub
--> Error number -10000. Finder got an error: Can't continue.

Of course now that I know about it, I know how to deal with it, but it wasn't all that obvious to me before Gary and I discussed the whole "path to" issue. Up to this point, I had assumed (and I don't need a lecture about assuming) that the "path to" command pointed to the default location of the folder, as defined by Mac OS.

--

Rob Jorgensen
Ohio, USA
_______________________________________________
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:
    • Re: Path To blessed items (OSX and OS9): Odd or Normal?
      • From: John Delacour <email@hidden>
References: 
 >Path To blessed items (OSX and OS9): Odd or Normal? (From: Gary Lists <email@hidden>)
 >Re: Path To blessed items (OSX and OS9): Odd or Normal? (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Path To blessed items (OSX and OS9): Odd or Normal?
  • Next by Date: Re: GUI Scripting: accessing menus causes error
  • Previous by thread: Re: Path To blessed items (OSX and OS9): Odd or Normal?
  • Next by thread: Re: Path To blessed items (OSX and OS9): Odd or Normal?
  • Index(es):
    • Date
    • Thread