MACSCRPT Archives

July 2008

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Lively <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 9 Jul 2008 13:25:40 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
On Jul 9, 2008, at 1:07 PM, Bill Steele wrote:

>
> Inside a Filemaker script you don't tell Filemaker things, so that  
> becomes
>
> set foo to cell "whatever"
> tell app "something"
> (do some stuff with foo)
> if stuffworked
> set itworked to false
> end tell
> if not itworked
> do script "something else"
> end if
> end tell
>
> But if I put that inside a "Perform Applescript" step in a Filemaker  
> script I get an "object not found" error. It seems the object not  
> found is the Filemaker script "something else." Didn't give me an  
> error message on saving the script, though, so it seems to accept  
> the "do script" command.
>
> How do I call a Filemaker script from an Applescript that's inside a  
> Filemaker script?

What version of Filemaker are you using?  The following works for me  
with 9.  Another question is Are you addressing 1 file or 2?

I set up a minimalist example.

script "1"
Perform AppleScript["do script "2""]

script "2"
New Record/Request

ATOM RSS1 RSS2