Re: Applescript "set name of" different in 10.0 vs 10.1?
Re: Applescript "set name of" different in 10.0 vs 10.1?
- Subject: Re: Applescript "set name of" different in 10.0 vs 10.1?
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 25 May 2002 21:37:47 -0700
On 5/25/02 6:58 PM, "email@hidden" <email@hidden> wrote:
>
I've got this applescript that I've written for Mac OS X that works fine in
>
10.1 and up, but doesn't work in 10.0 because of one line of code. That line
>
of code is:
>
>
set name of file file_in_string to "FavoritesOld.html"
>
>
where file_in_string is set via:
>
>
set file_in_string to (home as string) &
>
":Library:Preferences:Explorer:Favorites.html"
>
>
>
For whatever reason, in OS 10.0, I get a "cannot set name of file
>
RobDrive:RobGHome:Library:Preferences:Explorer:Favorites.html to
>
"FavoritesOld.html". (Gives a 10006 error, whatever that is. Yes, IE is not
>
running at the time)
>
>
Can anyone give me a workaround to this problem? Is there another means of
>
renaming this file? Are file-permissions different in OS 10.0 that would be
>
causing this problem?
None of it makes any sense unless you put it in a Finder tell block, which
you haven't here. Evidently setting name, and about 1000 other things (maybe
50 of which in AppleScript) didn't work in OS 10.0.
Who cares? NO ONE should be using OS 10.0. There's no excuse for doing so -
it's a pseudo-beta OS that doesn't work properly. Instead of trying to find
a workaround, you should put the whole thing in an error trap and 'on error'
tell the user to upgrade to OS 10.1. Nothing's going to work properly in
10.0.x, and you're doing him no favors trying to accommodate him.
--
Paul Berkowitz
_______________________________________________
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.