applescript in standalones?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

applescript in standalones?

Geoff Canyon via use-livecode
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
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: applescript in standalones?

Geoff Canyon via use-livecode
You have to manually include the dictionary and update the plist (I think), but the included engine does have the necessary support compiled in.

Thanks,
Brian
On Oct 23, 2018, 5:09 PM -0500, Tom Glod via use-livecode <[hidden email]>, 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
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: applescript in standalones?

Geoff Canyon via use-livecode
In reply to this post by Geoff Canyon via use-livecode
(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 <[hidden email]>, 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
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: applescript in standalones?

Geoff Canyon via use-livecode
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 <
[hidden email]> 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 <
> [hidden email]>, 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
> > [hidden email]
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: applescript in standalones?

Geoff Canyon via use-livecode
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 <
[hidden email]> 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 <
> [hidden email]> 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 <
> > [hidden email]>, 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
> > > [hidden email]
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > _______________________________________________
> > use-livecode mailing list
> > [hidden email]
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: applescript in standalones?

Geoff Canyon via use-livecode
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 <
[hidden email]> 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 <
> [hidden email]> 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 <
> > [hidden email]> 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 <
> > > [hidden email]>, 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
> > > > [hidden email]
> > > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > > _______________________________________________
> > > use-livecode mailing list
> > > [hidden email]
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > _______________________________________________
> > use-livecode mailing list
> > [hidden email]
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: applescript in standalones?

Geoff Canyon via use-livecode
In reply to this post by Geoff Canyon via use-livecode
Mine do. Not in Windows of course... :-)

On MacOS I use applescript to tell Acrobat to run a javascript to fill a form.

Bob S


> On Oct 23, 2018, at 15:08 , Tom Glod via use-livecode <[hidden email]> 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
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode