• 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: Persistance of Properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Persistance of Properties


  • Subject: Re: Persistance of Properties
  • From: Irwin Poche <email@hidden>
  • Date: Mon, 15 Oct 2001 20:59:24 -0500

Jason,

Thanks for the suggestion - sounds like what I need. I've been trying to
get it to work but to no avail. This script gets an "Can't make some data
into the expected type" on the "store script" line...

tell application "Finder"
set myproperties to {1, 2, 3, 4}
if not (file "foo" of desktop exists) then make new file at desktop with
properties {name:"foo"}
store script myproperties in file "foo" of desktop with replacing
end tell

Doing a bit more research and experimenting I arrive at the following.
While it doesn't fail, it doesn't work either. Both the data and resource
forks of foo are completely empty.

script persistableStuff
property myproperties : {7, 8, 9}
end script
tell application "Finder"
set myproperties to {1, 2, 3, 4, 5, 6, 7}
if not (file "foo" of desktop exists) then make new file at desktop with
properties {name:"foo"}
tell me to store script persistableStuff in file "foo" of desktop with
replacing
end tell

Any idea how to get this sort of thing to work ?

-Irwin




References: 
 >Re: Persistance of Propertie (From: "Jason W. Bruce" <email@hidden>)

  • Prev by Date: Standard Grip or Southpaw? [was: Date weirdness from Finder]
  • Next by Date: Re: Standard Grip or Southpaw? [was: Date weirdness from Finder]
  • Previous by thread: Re: Persistance of Propertie
  • Next by thread: QuarkXpress Eps
  • Index(es):
    • Date
    • Thread