[Sikuli-driver] [Question #706732]: is there a way to directly run applescript from sikuli

2023-05-19 Thread Chetan
New question #706732 on SikuliX:
https://answers.launchpad.net/sikuli/+question/706732

is there a way to directly run .applescript  file from sikuli
we are able to run script by passing string in runscript but we have an 
.applescript file say tests.applescript and would like to run it directly

any sample code would be appreciated


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #706732]: is there a way to directly run applescript from sikuli

2023-05-21 Thread RaiMan
Question #706732 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/706732

Status: Open => Answered

RaiMan proposed the following answer:
this works having the AppleScript text in the running script:

runScript (
"""
applescript
display dialog \"hello\"
"""
)

See:
https://sikulix-2014.readthedocs.io/en/latest/scripting.html#runScript
(the second info runScript(snippet))

Internally we use osascript.
To run an Applescript file is not implemented, but you might use a call to 
osascript using the normal runScript.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #706732]: is there a way to directly run applescript from sikuli

2023-05-22 Thread Chetan
Question #706732 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/706732

Status: Answered => Open

Chetan is still having a problem:
thanks. however we want to specific the file name and not put the code in 
string. is it possible to give the file name
example runScript (yxs_script)
reason:
the script can be long one

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #706732]: is there a way to directly run applescript from sikuli

2023-05-22 Thread RaiMan
Question #706732 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/706732

Status: Open => Answered

RaiMan proposed the following answer:
use 
run("osascript yxs_script")

which runs the command osascript internally from a command line .

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp