• 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: Applescript "set name of" different in 10.0 vs 10.1?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Sun, 26 May 2002 18:08:50 -0700

Are you quite sure that either POSIX path or 'do shell script' existed in OS
10.0 (AppleScript 1.5.5 if you're lucky)? I don't believe that either of
them did. The whole reason he wants help is because of 10.0, which was not a
complete OS. None of this is going to work. jut forget about 10.0 and error
out of it.

--
Paul Berkowitz

> From: Lachlan Deck <email@hidden>
> Date: Mon, 27 May 2002 10:41:48 +1000
> To: email@hidden
> Subject: Re: Applescript "set name of" different in 10.0 vs 10.1?
>
> Hi there,
>
>> From: email@hidden
>>
>> 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"
>
> set the_path to (POSIX path of (((path to preferences) as string) &
> "Explorer:"))
> set the_file to "Favorites.html"
> set new_name to "FavoritesOld.html"
>
> do shell script "cd " & the_path & "; mv " & the_file & " " & new_name
>
> with regards,
>
> --
> Lachlan Deck
> email@hidden
> _______________________________________________
> 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.
_______________________________________________
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.

References: 
 >Re: Applescript "set name of" different in 10.0 vs 10.1? (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: Applescript "set name of" different in 10.0 vs 10.1?
  • Next by Date: Printing PS from InDesign
  • Previous by thread: Re: Applescript "set name of" different in 10.0 vs 10.1?
  • Next by thread: A modest request?
  • Index(es):
    • Date
    • Thread