• 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: script keeps sending events to remote machine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: script keeps sending events to remote machine


  • Subject: Re: script keeps sending events to remote machine
  • From: Geoff Graham <email@hidden>
  • Date: Mon, 12 Jan 2004 17:24:15 -0500

On Jan 12, 2004, at 3:39 PM, Emmanuel wrote:

At 11:33 AM -0500 12/01/04, Geoff Graham wrote:
tell application "watcher" of machine "eppc://admin:email@hidden.0.4"
set x to New(q)
end tell
tell application "FileMaker Pro"
activate
go to x
end tell

On the last line, go to x, the error i get is:
watcher got an error: +class crow; id 1.2712202E+7 of +class cDB ; "Invoices.SH1" doesn't understand the go to message.

"watcher" is an applescript application that makes new records in filemaker. that machine of course also runs "Filemaker Pro"

so why is this script still targeting the remote machine outside of the tell block?

What a nightmare ... x is an object of watcher, even if you quit watcher AppleScript will launch it again to send it "open [that object]".


aha htat makes more sense; the result is:
record id 1.2712326E+7 of database "Invoices.SH1" of application "watcher" of machine "eppc://admin:email@hidden.0.4"

but "x" gets set to only:
record id 1.2712326E+7 of database "Invoices.SH1"

the app watcher is not on this machine - so I guess it is still an object of watcher...
anyhow, just the text will do; but as string or as text fails

This has nothing to see with the fact you have two machines, you can do it all in one machine.


sure, it works great on the same machine. (except i don't have to target a remote machine) but the point is to have a machine that makes new records when clients are disallowed from making records

I suppose that's what id's are for: I'm afraid you have to pass a public type such as the object's id, or its name.


Eh? if i copy that text (record id 1.2712326E+7 of database "Invoices.SH1") and paste it in front of the last go to, it works fine. any ideas on how to get that as a text string, and not some fancy object? I tried, based on what you said, in the "New()" handler in watcher, to return the result as string, but that makes filemaker give me the record data. If I try as string here, as in go to (x as string), then can't make "rec...blah" into a string

Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Need help with an Apple Script Error Code (From: Gnarlodious <email@hidden>)
 >Re: Need help with an Apple Script Error Code (From: Craig Sutherland <email@hidden>)
 >script keeps sending events to remote machine (From: Geoff Graham <email@hidden>)
 >Re: script keeps sending events to remote machine (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Images and FMP
  • Next by Date: Re: Scripting Illustrator 10
  • Previous by thread: Re: script keeps sending events to remote machine
  • Next by thread: Re: script keeps sending events to remote machine
  • Index(es):
    • Date
    • Thread