Re: Filemaker 8.5 stored applescript problem
Re: Filemaker 8.5 stored applescript problem
- Subject: Re: Filemaker 8.5 stored applescript problem
- From: "Gary (Lists)" <email@hidden>
- Date: Thu, 17 May 2007 19:58:30 -0400
"Stockly, Ed" wrote:
>> However, comments aren't interpreted, so the comments will have the raw code.
>
> I still don't get this, even if I type in the raw codes, they still convert to
> appleScript, it seems this solution would only work using Filemaker's script
> editing environment, is that right?
Oy! to this thread, but... ;)
Ed, what you may be missing is the use of the AS 'comment' to preserve the
not-yet-compiled string "«event rdwrread»", which can then be reused while
testing.
For example, in Smile or Script Editor, if I type this...
-- «event rdwrread»
«event rdwrread»
...and then compile, I will get this:
-- «event rdwrread»
read
(...as well as an error because 'read' alone is problematic.)
Since the word 'read' replaced the string '«event rdwrread»' on the
un-commented line, I can easily copy/paste it from the comment to test
again.
I believe that was the original point of the "However, comments are
interpreted..." post.
As for the rest of the discussion, it's long been known (and discussed
here...see the archives) that FM-based AppleScript is "invisibly" wrapped in
a 'tell app "FileMaker Pro"', and so the read issue is just one of the
problems to work around. (But the discussion should still be had, of
course.)
--
Gary
_______________________________________________
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