Re: Send to program
On 10.09.2012 at 12:31 Uhr -0400 dunb...@aol.com apparently wrote: Am I to understand that LiveCode, the great and powerful, cannot do this at all? Am I the first one that ever wanted to send a message to another machine? A new project I am working on therefore must be authored in Hypercard. I am fine with that. I will just buy a few G4 blue and whites on eBay for $5 each. As others said, the underlaying technologies have changed. I suggest for you to take a look at the ChatRev suite from Bjoernke von Gierke. These stacks let LC users to chat with each other across network. As such, this provides a framework which with some work could be adapted to duplicate what epsi did in HC. Robert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Send to program
So is it really true that I cannot send a message to another machine running liveCode: I cannot: send beep 3 to program myRemotemachine Say it ain't so. I want my Jacque. Craig Newman -Original Message- From: Mike Bonner bonnm...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Sun, Sep 9, 2012 9:44 pm Subject: Re: Send to program I think if you ignore send to program and use applescript directly you can get things accomplished. If you decide to look in that direction, check out the (old) info here. http://www.sonsothunder.com/devres/revolution/tips/ascr006.htm Not sure it will solve the remote issues, but still worth a read. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Send to program
On 9/10/12 10:54 AM, dunb...@aol.com wrote: So is it really true that I cannot send a message to another machine running liveCode: I cannot: send beep 3 to program myRemotemachine Say it ain't so. I want my Jacque. LOL. I'm flattered, but I had to look it up. I hate to be the bearer of bad news, but the dictionary says that what you want to do only supported in OS 9. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Send to program
OK. Fine. Am I to understand that LiveCode, the great and powerful, cannot do this at all? Am I the first one that ever wanted to send a message to another machine? A new project I am working on therefore must be authored in Hypercard. I am fine with that. I will just buy a few G4 blue and whites on eBay for $5 each. Nobody ever ran into this before? Am I the only one who thinks this might be, what, a minor limitation? Don't tell the ordinary procedural programmers, who still think xTalks are for kids. They will never let us live it down. Who do I whine to? Craig -Original Message- From: J. Landman Gay jac...@hyperactivesw.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Mon, Sep 10, 2012 12:12 pm Subject: Re: Send to program On 9/10/12 10:54 AM, dunb...@aol.com wrote: So is it really true that I cannot send a message to another machine running liveCode: I cannot: send beep 3 to program myRemotemachine Say it ain't so. I want my Jacque. LOL. I'm flattered, but I had to look it up. I hate to be the bearer of bad news, but the dictionary says that what you want to do only supported in OS 9. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Send to program
Why have a few more replies to this topic appeared? Wasn't the link I sent a good answer? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Send to program
On 9/10/12 11:31 AM, dunb...@aol.com wrote: Am I to understand that LiveCode, the great and powerful, cannot do this at all? It sounds like the limitation is in OS X. But I just looked at the link Colin posted and it looks like you could make that work. Or there's Ken Ray to the rescue again: http://www.sonsothunder.com/devres/livecode/tips/ascr004.htm Otherwise, I think most people have migrated to using sockets. Those work on any OS. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Send to program
Not so fast. There is a Remote Apple Events thingummy in the Sharing preferences of Snow Leopard, and I think also still in Lion. If an app is written to respond to Apple Events, then it *should* work. Not sure how you would do it though. Bob On Sep 10, 2012, at 9:10 AM, J. Landman Gay wrote: On 9/10/12 10:54 AM, dunb...@aol.com wrote: So is it really true that I cannot send a message to another machine running liveCode: I cannot: send beep 3 to program myRemotemachine Say it ain't so. I want my Jacque. LOL. I'm flattered, but I had to look it up. I hate to be the bearer of bad news, but the dictionary says that what you want to do only supported in OS 9. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Send to program
Bob, I checked remote Apple events in the target machine early on. No dice. (error -1701) Craig -Original Message- From: Bob Sneidar b...@twft.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Mon, Sep 10, 2012 1:37 pm Subject: Re: Send to program Not so fast. There is a Remote Apple Events thingummy in the Sharing preferences of Snow Leopard, and I think also still in Lion. If an app is written to respond to Apple Events, then it *should* work. Not sure how you would do it though. Bob On Sep 10, 2012, at 9:10 AM, J. Landman Gay wrote: On 9/10/12 10:54 AM, dunb...@aol.com wrote: So is it really true that I cannot send a message to another machine running liveCode: I cannot: send beep 3 to program myRemotemachine Say it ain't so. I want my Jacque. LOL. I'm flattered, but I had to look it up. I hate to be the bearer of bad news, but the dictionary says that what you want to do only supported in OS 9. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Send to program
Colin. I may be misreading the link, and possibly resisting having to deal with writing applescript scripts, but the article shows methods of doing such things as would be considered remote machine control: opening apps, going to sleep, changing system attributes like playback volume, etc. It shows the use of native AS commands such as quit and play, appropriate to the application being addressed. I assume I could run LiveCode by executing routines as applescript (?). I am reluctant to have to do that. I want to write LC scripts and have them run from one LC machine to another. I see that it is likely the OS that may be the culprit. So, back to good ol' OS9. Or am I missing something? All the target machines will simply have a block of data loaded into a field. The target machine need never communicate backward to the source machine, which sends that block. So anyone out there have a simple script? Pseudocode: tell application LiveCode of machine remoteAddress -- here is where I would have normally included a command and a parameter that contains the data loadRemoteData tData -- how do it know? where do commands that AS execute derive from LC? Where does it get the associated data? end tell Craig -Original Message- From: Colin Holgate co...@verizon.net To: How to use LiveCode use-livecode@lists.runrev.com Sent: Mon, Sep 10, 2012 12:38 pm Subject: Re: Send to program Why have a few more replies to this topic appeared? Wasn't the link I sent a good answer? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Send to program
Jacque. Ken Ray's script almost looks intelligible to me; I wrote some AS scripts about 30 years ago. But I am too old and feeble to see where this ties in. Craig -Original Message- From: dunbarx dunb...@aol.com To: use-livecode use-livecode@lists.runrev.com Sent: Mon, Sep 10, 2012 3:42 pm Subject: Re: Send to program Colin. I may be misreading the link, and possibly resisting having to deal with writing applescript scripts, but the article shows methods of doing such things as would be considered remote machine control: opening apps, going to sleep, changing system attributes like playback volume, etc. It shows the use of native AS commands such as quit and play, appropriate to the application being addressed. I assume I could run LiveCode by executing routines as applescript (?). I am reluctant to have to do that. I want to write LC scripts and have them run from one LC machine to another. I see that it is likely the OS that may be the culprit. So, back to good ol' OS9. Or am I missing something? All the target machines will simply have a block of data loaded into a field. The target machine need never communicate backward to the source machine, which sends that block. So anyone out there have a simple script? Pseudocode: tell application LiveCode of machine remoteAddress -- here is where I would have normally included a command and a parameter that contains the data loadRemoteData tData -- how do it know? where do commands that AS execute derive from LC? Where does it get the associated data? end tell Craig -Original Message- From: Colin Holgate co...@verizon.net To: How to use LiveCode use-livecode@lists.runrev.com Sent: Mon, Sep 10, 2012 12:38 pm Subject: Re: Send to program Why have a few more replies to this topic appeared? Wasn't the link I sent a good answer? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Send to program
I got pretty good at it, way back when developers who really believed in it made their documentation fairly usable. The trouble with Applescript is that you are entirely dependent on the really sparse, often wholly inadequate or incomplete app dictionaries (if there even is one), and on public forums. The syntax one app uses to access data, may not be exactly the same in another. Some support enumeration (working with multiple instances of an object as opposed to only one at a time) and other do not. Some apps only partially support a library. Trial and error, mostly error, is what is in store for you if you want to script an app. Working through all of that is a long, long row to hoe for even a seasoned developer, and is IMHO the primary reason that Applescript was not more widely adopted. Bob On Sep 10, 2012, at 3:39 PM, J. Landman Gay wrote: On 9/10/12 2:56 PM, dunb...@aol.com wrote: Ken Ray's script almost looks intelligible to me; I wrote some AS scripts about 30 years ago. But I am too old and feeble to see where this ties in. I couldn't master AppleScript even when I wasn't old and feeble. :) Sounds like maybe it's time to look into sockets. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Send to program
No luck on the forums. Will try here. I have been using an applescript/HC suite of tools from epsi computers for decades to run a client/server system in HC. Pretty good stuff, and I have become adept. I even defeated record locking. I have never communicated with another Mac using LC, but want to do so now. But I am getting an error -1701 when I try something as simple as: send myMessage to program *:myOtherMac:LiveCode The message is just a test, and tells an open LC stack to put a random number into a field. myMessage is the name of a handler in the stack script. Something to do with the pathname? Such a message has no issue in HC (running OS9, of course) Has to be simple. That is why I am posting in the complete beginners section. Craig Newman ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Send to program
See if this article helps: http://www.makeuseof.com/tag/remotely-control-mac-simple-applescripts/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Send to program
On Mon, Sep 10, 2012 at 12:42 AM, dunb...@aol.com wrote: Something to do with the pathname? Such a message has no issue in HC (running OS9, of course) My guess is yes, that is an OS 9/HC pathname. LC uses / not : in it's pathnames. HTH ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Send to program
I've been trying to get this to work here and interestingly enough even something like: do choose remote application as applescript doesn't work. It shows the machines, but selecting the machine and waiting for the dialog to finish pinwheeling returns no applications found which is of course not correct. (this is with remote events and remote management turned on) Makes me wonder if some underlying service needs to be turned on for it to work, and if so the same thing would most likely apply to send to program. On Sun, Sep 9, 2012 at 6:52 PM, Kay C Lan lan.kc.macm...@gmail.com wrote: On Mon, Sep 10, 2012 at 12:42 AM, dunb...@aol.com wrote: Something to do with the pathname? Such a message has no issue in HC (running OS9, of course) My guess is yes, that is an OS 9/HC pathname. LC uses / not : in it's pathnames. HTH ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Send to program
Sorry, I take that back, I see in the dictionary that it specifically says to use colons, and that it also mentions AppleTalk zones. I have a test app that use to demonstrate this (actually two Rev apps, a sender and a receiver), which use to be at RevOnline but I notice they are no longer there. When I try to run my apps I get a message telling me that I need to install Rosetta (this is on SnoLeo) for the apps to work. AppleTalk was removed as of 10.6, maybe this is another reason you are having trouble. This might mean that 'send to program' might not be possible for you and the suggested 'send ... as applescript' might be a better way to go. I'm guessing the reason the suggested methods aren't working is that an OSAX is probably needed. HTH On Mon, Sep 10, 2012 at 8:52 AM, Kay C Lan lan.kc.macm...@gmail.com wrote: On Mon, Sep 10, 2012 at 12:42 AM, dunb...@aol.com wrote: Something to do with the pathname? Such a message has no issue in HC (running OS9, of course) My guess is yes, that is an OS 9/HC pathname. LC uses / not : in it's pathnames. HTH ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Send to program
I think if you ignore send to program and use applescript directly you can get things accomplished. If you decide to look in that direction, check out the (old) info here. http://www.sonsothunder.com/devres/revolution/tips/ascr006.htm Not sure it will solve the remote issues, but still worth a read. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
send to program problem
I still have a dozen OS9 macs running HC, working together all day with send to program chitChat. 20 years... From any HC machine, if I say: send beep 3 to program *:hcServer:hypercard, that machine beeps three times. If I try this from LC, (OSX 10.4) I get error -1701, likely some failed to find file sort of thing. The HC server machine is connected when I do this, though that is unnecessary in the OS9 world, apple events working just fine with only a valid AppleTalk address. I have seen little in either the forums or here about LC talking to LC on a network. Is this uncommon? When I first opened Revolution years ago, it was the first thing I sought out, to make sure that at least that was still supported. Is it OSX to OS9? Is it me? Are there better ways to create a clent/server or peer to peer network than this? I will probably never use LC merely as a front end, I will always want to roll the whole thing from within. Thanks... Craig Newman ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: send to program problem
Hi Craig, I think most people use sockets to allow for inter-application communications. I think that the send command relied on Mac OS 9 (and earlier) specific features. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 28 apr 2011, at 23:42, dunb...@aol.com wrote: I still have a dozen OS9 macs running HC, working together all day with send to program chitChat. 20 years... From any HC machine, if I say: send beep 3 to program *:hcServer:hypercard, that machine beeps three times. If I try this from LC, (OSX 10.4) I get error -1701, likely some failed to find file sort of thing. The HC server machine is connected when I do this, though that is unnecessary in the OS9 world, apple events working just fine with only a valid AppleTalk address. I have seen little in either the forums or here about LC talking to LC on a network. Is this uncommon? When I first opened Revolution years ago, it was the first thing I sought out, to make sure that at least that was still supported. Is it OSX to OS9? Is it me? Are there better ways to create a clent/server or peer to peer network than this? I will probably never use LC merely as a front end, I will always want to roll the whole thing from within. Thanks... Craig Newman ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode