• 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: Persistence of properties in AppleScripts within FileMaker Pro scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Persistence of properties in AppleScripts within FileMaker Pro scripts


  • Subject: Re: Persistence of properties in AppleScripts within FileMaker Pro scripts
  • From: Bill Briggs <email@hidden>
  • Date: Tue, 4 Mar 2003 14:52:19 -0400

At 6:34 PM +0000 04/03/03, John Delacour wrote:
At 9:18 am -0400 4/3/03, Bill Briggs wrote:

Does anyone know how to make properties stick in AppleScripts run within FileMaker Pro's scripting architecture?

You can use the method I described the other day, which requires only one chort line in the prefs file.

(* ~/library/preferences/myFMPprefs *)
-----
property prefs: {} as record
-----


Then have your script do this:

set _scriptfile to alias ("" & (path to "pref") & "myFMPprefs")
set _loadedScript to load script _scriptfile
set my _record to {a:1, b:2, c:3}
set the prefs of the _loadedScript to my _record
store script _loadedScript in _scriptfile with replacing
--
set _checkResults to load script _scriptfile
get prefs of _checkResults

I was able to get the required effect by just adding a number field to the database. If I find I need to store several more things as this develops, then maybe I'll add a prefs file.

- web
_______________________________________________
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: 
 >Persistence of properties in AppleScripts within FileMaker Pro scripts (From: Bill Briggs <email@hidden>)
 >Re: Persistence of properties in AppleScripts within FileMaker Pro scripts (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Flogging a dead horse
  • Next by Date: Re: [ADMIN] Comments about digest size?
  • Previous by thread: Re: Persistence of properties in AppleScripts within FileMaker Pro scripts
  • Next by thread: Re: Persistence of properties in AppleScripts within FileMaker Pro scripts
  • Index(es):
    • Date
    • Thread