applescript in standalones?
Tom Glod
tom at makeshyft.com
Wed Oct 24 09:28:09 EDT 2018
Ahhhhhh...I would have never figured that out from just reading the
enhancement report. Much thanks Brian.
On Wed, Oct 24, 2018 at 12:58 AM Brian Milby via use-livecode <
use-livecode at lists.runrev.com> wrote:
> I can confirm that the following scripts work as expected in a stand alone
> application (9.0.1):
>
> on mouseUp
> local tScript
> put "Display Dialog" && quote & "Hello world" & quote into tScript
> do tScript as "AppleScript"
> answer the result -- '{button returned:"OK"}' if you click the OK
> button
> end mouseUp
>
> on mouseUp
> do "1 + 1" as "AppleScript"
> answer the result -- 2
> end mouseUp
>
> on mouseUp
> do field "TheScript" as "AppleScript" -- tested with "beep"
> answer the result -- empty for beep
> end mouseUp
>
>
> The linked bug deals with the other direction - your built application
> being able to receive applescript commands to "do script". For a while,
> the sdef file/plist entry was missing so the IDE couldn't receive those
> commands but that has been fixed. Patching the build scripts to include
> the file/update the plist would be fairly easy but adding the check box for
> the setting would require a binary stack update.
>
> Thanks,
> Brian
>
> On Tue, Oct 23, 2018 at 6:00 PM Tom Glod via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
> > Hi Brian, to be honest I am not sure....your answer definately reflects
> > that feature request to which I linked...so probably that is the official
> > situation..... but just to make sure......
> >
> > I want to build a standalone from which I am able to run applescript
> > commands ..(ex send keystrokes to other applications)....like vbscript's
> > sendkeys()..
> >
> > ?
> >
> >
> >
> > On Tue, Oct 23, 2018 at 6:43 PM Brian Milby via use-livecode <
> > use-livecode at lists.runrev.com> wrote:
> >
> > > (I think I answered the wrong question though. I was answering if you
> can
> > > script a stand-alone from AS)
> > >
> > > I’ll check and answer the right question this evening if someone else
> > > doesn’t chime in.
> > >
> > > Thanks,
> > > Brian
> > > On Oct 23, 2018, 5:09 PM -0500, Tom Glod via use-livecode <
> > > use-livecode at lists.runrev.com>, wrote:
> > > > Can someone confirm for me whether "do as applescript" works in
> > > standalones
> > > > built by v9? ..I'm seeing a couple of discrepancies in this regards.
> We
> > > > don't have a mac handy and i know some of you will know this off the
> > top
> > > of
> > > > your head. many thanks.
> > > >
> > > > seeing this in the requests for contributions ....
> > > >
> > > > https://quality.livecode.com/show_bug.cgi?id=20993
> > > >
> > > > and posts that talk about it working.....
> > > >
> > > > Which is true?
> > > > _______________________________________________
> > > > use-livecode mailing list
> > > > use-livecode at 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 at 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 at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list