• 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: Filemaker and AppleScript and Compilation....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filemaker and AppleScript and Compilation....


  • Subject: Re: Filemaker and AppleScript and Compilation....
  • From: Malcolm Fitzgerald <email@hidden>
  • Date: Thu, 21 Apr 2005 10:33:43 +1000


On 21/04/2005, at 12:01 AM, David Crowe wrote:

property x : "abc"
display dialog "X?" default answer x
set x to text returned of the result
provides the same default answer every time it is run, indicating that compilation occurs every time the script is run. I've tried this in FileMaker Developer 6 and 7 and get the same result.


Is there any way to stop FileMaker from recompiling the script every time?

Filemaker compiles the script every time it is used.

I was assuming that using a string was more efficient than referencing a large script in a file ... but for large, complex scripts, this may well not be the case.

I don't understand what you're trying to say. However, I'll try to guess.


1)
Using script libraries is an excellent way to keep your code clean.

set theVars to load script x -- scripts can store properties
set domain of theVars to "asauthors.org"
store script theVars in file x replacing yes -- save your properties

set theFTPLib to load script y -- scripts store code of course
theFTPLib's uploadFMPRecord(domain of theVars)



2)
Using another table in the database to store information works well too.

set kWebAdminLytID to 32

set {gDB , gLyt, gID} to {database 1, current layout, current record}

go to layout id 32 -- web admin layout not accessible to users
set {theKey, theDatadir, http_server, http_username, http_password} to {gID's cell "_idNumber", gID's cell "woda::datadir", gID's cell "woda::http server", gID's cell "woda::http username",gID's cell "woda::http password"}
go to gLyt


3)
Using another application (applescript) as Gary suggested works very well too. The FMP applescript reference database has lots of companion scripts and applications as examples.



Malcolm Fitzgerald ph: 02 93180877 Database Manager fax: 02 93180530 The Australian Society of Authors www.asauthors.org

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Filemaker and AppleScript and Compilation.... (From: David Crowe <email@hidden>)

  • Prev by Date: Re: simple file copy
  • Next by Date: Re: OS 9: Automatic capture of text in a window
  • Previous by thread: Re: Filemaker and AppleScript and Compilation....
  • Next by thread: Error -10000 when running applescript from commandline
  • Index(es):
    • Date
    • Thread