• 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: Storing script objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Storing script objects


  • Subject: re: Storing script objects
  • From: "Jason W. Bruce" <email@hidden>
  • Date: Thu, 11 Jan 2001 11:15:18 +0000

John,

Your script works fine for me. When you are trying to retrieve property "y"
from "Script File," are you using load script in your main script to check
y's value? The textual representation of "Script File" will not reflect the
actual values of its properties. Also, are you asking for y of x of "Script
File"? Also, if you recompile "Script File" at any time -- by editing it in
your script editor -- all properties will revert to their original values.
This is because when you recompile the script, you are overwriting the old
file with the new one you've just edited. HTH.

Jason Bruce

> Date: Thu, 11 Jan 2001 06:50:13 -0400
> To: email@hidden
> From: John MacDonald <email@hidden>
> Subject: Storing script objects
>
> Hi!
>
> I want to build some script objects based on FileMaker data and then
> use Store Script to write a file that can be used by other scripts.
>
> When I change properties of the script they don't get written. For example:
> --------
> script x
> property y : {}
> end script
>
> set x's y to {1, 2, 3}
> store script x in ((path to desktop) as text) & "script file" with replacing
> ------
>
> When I read the file, property y is set to the original {}.
>
> Any ideas?
>
> -John


  • Follow-Ups:
    • Re: Storing script objects
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Event handling
  • Next by Date: Re: Mac OS 9.1 Standard Additions OSAX
  • Previous by thread: Re: Storing script objects
  • Next by thread: Re: Storing script objects
  • Index(es):
    • Date
    • Thread