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

Running a script library from within Filemaker Pro 6


  • Subject: Running a script library from within Filemaker Pro 6
  • From: Jim Skibbie <email@hidden>
  • Date: Fri, 16 May 2008 15:07:05 -0500
  • Thread-topic: Running a script library from within Filemaker Pro 6

Title: Running a script library from within Filemaker Pro 6
I have an Applescript that is too long to run inside Filemaker Pro 6’s ScriptMaker: Perform Applescript command. Apparently there is a 64,000 character limit to the text box you paste the script into in Filemaker Pro 6.

Almost half of the script is handlers that I could reference by loading them as a library (thus allowing me to get below the 64,000 char. limit), but from within Filemaker Pro 6, I can’t get this to work. For some reason I get the error:

<<script>> doesn’t understand the run message –1708

when Filemaker tries to execute the line “
tell library to run” in the below script. This script runs fine as a standalone script in ScriptDebugger, but not when called from within Filemaker.

Any thoughts? Is there any way to use osascript from within Filemaker to get the library file to run? The main script requires user interaction, so I don’t know how much could be run through osascript? When I tried to run this from the terminal with:

$ osascript /Users/jim/Desktop/run_test.scpt
/Users/jim/Desktop/run_test.scpt: execution error: No user interaction allowed. (-1713)

I get an error that user interaction is not allowed?

Thanks.
Jim


This is a test script I tried to run from within Filemaker:

try
   set x to choose file with prompt "Select the Library file"
   
    
set library to load script file (x as string)
   
    
display dialog "Loaded"
   
    
tell library to run
   
    
display dialog "run"
   
    
set z to current date
   
    
set a to library's isoDate(z)
   
    
display dialog a
   
on error errmsg number errnum
   display dialog errmsg & return & errnum
end try


This is the library file I loaded just for the test:

on isoDate(dateObj)
   tell dateObj to return (text 2 thru 3 of ((100 + (its month as integer)) as string)) & "." & text 2 thru 3 of ((100 + (its day)) as string) & "." & (its year as string)
end
isoDate
 _______________________________________________
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: Axel Luttgens <email@hidden>
  • Prev by Date: Re: How do I read a file ...
  • Next by Date: Re: PowerPoint applescript for shape type free form
  • Previous by thread: Re: How do I read a file ...
  • Next by thread: Re: Running a script library from within Filemaker Pro 6
  • Index(es):
    • Date
    • Thread