------------------------------

Message: 6
Date: Mon, 15 Dec 2003 10:56:31 +1000
From: Sarah Reichelt <[EMAIL PROTECTED]>
Subject: Re: Apple script problems
To: How to use Revolution <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed

Hi Jim,

HyperCard is totally AppleScriptable. If you open the Apple Script
Editor and then Open dictionary... you can see the list of commands
that HyperCard responds to. Revolution has no such dictionary and does
not respond directly to AppleScripts. You can probably do it yourself
by writing an AppleEvent handler that responds to a dosc event (do
script).

However in the current case, you don't need to use AppleScript.
Shorten your AppleScript to this:

tell application "filemaker Pro5"
  get every record
  set theResult to result
  return theResult
end tell

In your Rev button, have this script:
On mouseUP
  do field "theScript" as applescript
  put the result into field "data"
end mouseUp

Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/


Hi Sarah,

Thank you for your response. It was very helpful. But the result of

tell application "filemaker Pro5"
get evrey record
end tell

On mouseUp
do field "theScript" as applescript
put the result into field "data"
end mouseUp

results in the following in field "data"

{{"4535", "Gossett", "Joshua", "Boreham", "12975", "", "", ""}, {"109769", "Hochwald ", "Joshua ", "American Hill ", "15822", "sAddress sLast", "", "Voter"}}

(These are just two records in this voter database.)

Now I can get rid of the quotes and the curly brackets (by putting the results into a variable and using the "replace" command), but I don't understand their origin. They are not present in the original; the fields are all just simple text. The quotes are not so surprising as the curly brackets.

Puzzled,

Jim
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to