• 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: Re: Running a script library from within Filemaker Pro 6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Running a script library from within Filemaker Pro 6


  • Subject: Re: Re: Running a script library from within Filemaker Pro 6
  • From: Jim Skibbie <email@hidden>
  • Date: Tue, 20 May 2008 17:15:35 -0500
  • Thread-topic: Running a script library from within Filemaker Pro 6

Title: Re: Re: Running a script library from within Filemaker Pro 6
Below might be a better example.

The variable foo is set as a property, but it errors when it is called as part of the “ThisScript” even though it is defined in the main script.

I guess my question is mainly regarding variables passing from one script to the next.

It looks like the handler defined in one script can be called in another, but the property doesn’t seem to transfer it’s values/existence in the same fashion.

Thanks.
Jim



Main script:

property foo : "mainvalue"

--global foo

set foo to "mainvalue"

set ThisScript to load script (alias "Macintosh HD:Users:schawk:Desktop:ThisScript.scpt")

set ThatScript to load script (alias "Macintosh HD:Users:schawk:Desktop:ThatScript.scpt")

tell ThatScript to run

set x to ThisScript's thisresult(" World")

This script:

--property foo : "thisvalue"

on thisresult(x)
   set y to "Hello World " & x & foo
   return y
end thisresult


That script:

--property foo : "foo"

on run
   set z to ThisScript's thisresult("Hello")
   set z to z & " " & foo
   activate
   display dialog z
   
end run
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Running a script library from within Filemaker Pro 6
      • From: Luther Fuller <email@hidden>
    • Re: Running a script library from within Filemaker Pro 6
      • From: Stan Cleveland <email@hidden>
  • Prev by Date: Re: Rép: reading a property list item
  • Next by Date: Re: Running a script library from within Filemaker Pro 6
  • Previous by thread: Re: Running a script library from within Filemaker Pro 6
  • Next by thread: Re: Running a script library from within Filemaker Pro 6
  • Index(es):
    • Date
    • Thread