It might be better to use expect I am not sure if this is provided with macOS 
also I did not get to look at the scripting dictionary for Terminal, it might 
have expect and send commands like expect does. I also remember a terminal like 
program that was more functional than trrminal. 


Jonathan Cohn 

> On Dec 8, 2015, at 4:25 PM, Alex Hall <[email protected]> wrote:
> 
> Have you looked into the 'do shell script' command? It does what it says on 
> the box: runs a shell script or command. For instance,
> do shell script "cd /volumes"
> would change the directory to /volumes. Or do you need to do this at a random 
> time, in your terminal session? If so, there's a way to send keystrokes or 
> characters, but I've never used it and can't think of it at the moment.
>> On Dec 6, 2015, at 14:34, dan dunfee <[email protected]> wrote:
>> 
>> 
>> Hi all,
>> 
>> Thanks for the offer for help with a simple apple script.  Using os10.10 in 
>> terminal from within applications such as lynx the web browser, here are the 
>> 3 steps I need to do:
>> 
>> 1. send the key combination control+f
>> 
>> 2. send the exact string:
>> 
>> :exec dss
>> 
>> 3. send a return
>> 
>> Please ask if this is unclear.  Thanks again.
>> 
>> Dan
>>>> On Dec 5, 2015, at 12:39 AM, Alex Hall <[email protected]> wrote:
>>>> I can try. What three steps?
>>>> On Dec 4, 2015, at 6:16 PM, - <[email protected]> wrote:
>>>> Hi,
>>>> Is there anyone who could help me do a very simple apple script of three 
>>>> steps?
>>>> The info on the web is overwhelming and I don't know how to start.
>>>> I want to use the feature of attaching apple scripts to a voiceover 
>>>> commander key combination.  I know how to do that but the apple script 
>>>> part is still beyond my current level of knowledge.
>>>> I hope to use this example to learn how to use apple script.
>>>> Thanks for any help,
>>>> Dan
>>>> XB
>>>> -- 
>>>> The following information is important for all members of the Mac 
>>>> Visionaries list.
>>>> If you have any questions or concerns about the running of this list, or 
>>>> if you feel that a member's post is inappropriate, please contact the 
>>>> owners or moderators directly rather than posting on the list itself.
>>>> Your Mac Visionaries list moderator is Mark Taylor and your owner is Cara 
>>>> Quinn - you can reach Cara at [email protected]
>>>> The archives for this list can be searched at:
>>>> http://www.mail-archive.com/[email protected]/
>>>> --- You received this message because you are subscribed to the Google 
>>>> Groups "MacVisionaries" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>>> email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at http://groups.google.com/group/macvisionaries.
>>>> For more options, visit https://groups.google.com/d/optout.
>>> --
>>> Have a great day,
>>> Alex Hall
>>> [email protected]
>>> -- 
>>> The following information is important for all members of the Mac 
>>> Visionaries list.
>>> If you have any questions or concerns about the running of this list, or if 
>>> you feel that a member's post is inappropriate, please contact the owners 
>>> or moderators directly rather than posting on the list itself.
>>> Your Mac Visionaries list moderator is Mark Taylor and your owner is Cara 
>>> Quinn - you can reach Cara at [email protected]
>>> The archives for this list can be searched at:
>>> http://www.mail-archive.com/[email protected]/
>>> --- You received this message because you are subscribed to the Google 
>>> Groups "MacVisionaries" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/macvisionaries.
>>> For more options, visit https://groups.google.com/d/optout.
>> 
>> -- 
>> The following information is important for all members of the Mac 
>> Visionaries list.
>> 
>> If you have any questions or concerns about the running of this list, or if 
>> you feel that a member's post is inappropriate, please contact the owners or 
>> moderators directly rather than posting on the list itself.
>> 
>> Your Mac Visionaries list moderator is Mark Taylor and your owner is Cara 
>> Quinn - you can reach Cara at [email protected]
>> 
>> The archives for this list can be searched at:
>> http://www.mail-archive.com/[email protected]/
>> --- You received this message because you are subscribed to the Google 
>> Groups "MacVisionaries" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/macvisionaries.
>> For more options, visit https://groups.google.com/d/optout.
>> 
>> --Apple-Mail-EA2E1A64-F048-4BB0-9DF0-FEA59347FDB2
>> Content-Type: text/html; charset=UTF-8
>> Content-Transfer-Encoding: quoted-printable
>> 
>> <html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=
>> =3Dutf-8"></head><body dir=3D"auto"><div>I can help also, though my access =
>> to a Macintosh is a bit limited.&nbsp;<br><br><br><div>Jonathan Cohn&nbsp;<=
>> /div></div><div><br>On Dec 5, 2015, at 12:39 AM, Alex Hall &lt;<a href=3D"m=
>> ailto:[email protected]">[email protected]</a>&gt; wrote:<br><br></div><b=
>> lockquote type=3D"cite"><div><meta http-equiv=3D"Content-Type" content=3D"t=
>> ext/html charset=3Dus-ascii">I can try. What three steps?<br class=3D""><di=
>> v><blockquote type=3D"cite" class=3D""><div class=3D"">On Dec 4, 2015, at 6=
>> :16 PM, - &lt;<a href=3D"mailto:[email protected]"; class=3D"">dandunfee@g=
>> mail.com</a>&gt; wrote:</div><br class=3D"Apple-interchange-newline"><div c=
>> lass=3D""><div class=3D""><br class=3D"">Hi,<br class=3D""><br class=3D"">I=
>> s there anyone who could help me do a very simple apple script of three ste=
>> ps?<br class=3D""><br class=3D"">The info on the web is overwhelming and I =
>> don't know how to start.<br class=3D""><br class=3D"">I want to use the fea=
>> ture of attaching apple scripts to a voiceover commander key combination. &=
>> nbsp;I know how to do that but the apple script part is still beyond my cur=
>> rent level of knowledge.<br class=3D""><br class=3D"">I hope to use this ex=
>> ample to learn how to use apple script.<br class=3D""><br class=3D"">Thanks=
>> for any help,<br class=3D""><br class=3D"">Dan<br class=3D""><br class=3D"=
>> ">XB<br class=3D""><br class=3D"">-- <br class=3D"">The following informati=
>> on is important for all members of the Mac Visionaries list.<br class=3D"">=
>> <br class=3D"">If you have any questions or concerns about the running of t=
>> his list, or if you feel that a member's post is inappropriate, please cont=
>> act the owners or moderators directly rather than posting on the list itsel=
>> f.<br class=3D""><br class=3D"">Your Mac Visionaries list moderator is Mark=
>> Taylor and your owner is Cara Quinn - you can reach Cara at <a href=3D"mai=
>> lto:[email protected]" class=3D"">[email protected]</a><br clas=
>> s=3D""><br class=3D"">The archives for this list can be searched at:<br cla=
>> ss=3D""><a href=3D"http://www.mail-archive.com/macvisionaries@googlegroups.=
>> com/" class=3D"">http://www.mail-archive.com/[email protected]=
>> m/</a><br class=3D"">--- You received this message because you are subscrib=
>> ed to the Google Groups "MacVisionaries" group.<br class=3D"">To unsubscrib=
>> e from this group and stop receiving emails from it, send an email to <a hr=
>> ef=3D"mailto:[email protected]";>macvisionaries+un=
>> [email protected]</a>.<br class=3D"">To post to this group, send e=
>> mail to <a href=3D"mailto:[email protected]";>macvisionaries@g=
>> ooglegroups.com</a>.<br class=3D"">Visit this group at <a href=3D"http://gr=
>> oups.google.com/group/macvisionaries">http://groups.google.com/group/macvis=
>> ionaries</a>.<br class=3D"">For more options, visit <a href=3D"https://grou=
>> ps.google.com/d/optout">https://groups.google.com/d/optout</a>.<br class=3D=
>> ""></div></div></blockquote></div><br class=3D""><div class=3D"">
>> <div style=3D"color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px;=
>> font-style: normal; font-variant: normal; font-weight: normal; letter-spac=
>> ing: normal; line-height: normal; orphans: auto; text-align: start; text-in=
>> dent: 0px; text-transform: none; white-space: normal; widows: auto; word-sp=
>> acing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-=
>> nbsp-mode: space; -webkit-line-break: after-white-space;" class=3D""><div c=
>> lass=3D""><br class=3D"Apple-interchange-newline">--</div><div class=3D"">H=
>> ave a great day,</div><div class=3D"">Alex Hall</div><div class=3D""><a hre=
>> f=3D"mailto:[email protected]"; class=3D"">[email protected]</a></div><div=
>> class=3D""><br class=3D""></div></div><br class=3D"Apple-interchange-newli=
>> ne" style=3D"color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; =
>> font-style: normal; font-variant: normal; font-weight: normal; letter-spaci=
>> ng: normal; line-height: normal; orphans: auto; text-align: start; text-ind=
>> ent: 0px; text-transform: none; white-space: normal; widows: auto; word-spa=
>> cing: 0px; -webkit-text-stroke-width: 0px;"><br class=3D"Apple-interchange-=
>> newline">
>> </div>
>> <br class=3D"">
>> 
>> <p></p>
>> 
>> -- <br>
>> The following information is important for all members of the Mac Visionari=
>> es list.<br>
>> &nbsp;<br>
>> If you have any questions or concerns about the running of this list, or if=
>> you feel that a member's post is inappropriate, please contact the owners =
>> or moderators directly rather than posting on the list itself.<br>
>> &nbsp;<br>
>> Your Mac Visionaries list moderator is Mark Taylor and your owner is Cara Q=
>> uinn - you can reach Cara at <a href=3D"mailto:[email protected]";>car=
>> [email protected]</a><br>
>> &nbsp;<br>
>> The archives for this list can be searched at:<br>
>> <a href=3D"http://www.mail-archive.com/[email protected]/";>ht=
>> tp://www.mail-archive.com/[email protected]/</a><br>
>> --- <br>
>> You received this message because you are subscribed to the Google Groups "=
>> MacVisionaries" group.<br>
>> To unsubscribe from this group and stop receiving emails from it, send an e=
>> mail to <a href=3D"mailto:[email protected]";>macv=
>> [email protected]</a>.<br>
>> To post to this group, send email to <a href=3D"mailto:macvisionaries@googl=
>> egroups.com">[email protected]</a>.<br>
>> Visit this group at <a href=3D"http://groups.google.com/group/macvisionarie=
>> s">http://groups.google.com/group/macvisionaries</a>.<br>
>> For more options, visit <a href=3D"https://groups.google.com/d/optout";>http=
>> s://groups.google.com/d/optout</a>.<br>
>> </div></blockquote></body></html>
>> 
>> <p></p>
>> 
>> -- <br />
>> The following information is important for all members of the Mac Visionari=
>> es list.<br />
>> &nbsp;<br />
>> If you have any questions or concerns about the running of this list, or if=
>> you feel that a member&#39;s post is inappropriate, please contact the own=
>> ers or moderators directly rather than posting on the list itself.<br />
>> &nbsp;<br />
>> Your Mac Visionaries list moderator is Mark Taylor and your owner is Cara Q=
>> uinn - you can reach Cara at [email protected]<br />
>> &nbsp;<br />
>> The archives for this list can be searched at:<br />
>> <a href=3D"http://www.mail-archive.com/[email protected]/";>ht=
>> tp://www.mail-archive.com/[email protected]/</a><br />
>> --- <br />
>> You received this message because you are subscribed to the Google Groups &=
>> quot;MacVisionaries&quot; group.<br />
>> To unsubscribe from this group and stop receiving emails from it, send an e=
>> mail to <a href=3D"mailto:[email protected]";>macv=
>> [email protected]</a>.<br />
>> To post to this group, send email to <a href=3D"mailto:macvisionaries@googl=
>> egroups.com">[email protected]</a>.<br />
>> Visit this group at <a href=3D"http://groups.google.com/group/macvisionarie=
>> s">http://groups.google.com/group/macvisionaries</a>.<br />
>> For more options, visit <a href=3D"https://groups.google.com/d/optout";>http=
>> s://groups.google.com/d/optout</a>.<br />
>> 
>> --Apple-Mail-EA2E1A64-F048-4BB0-9DF0-FEA59347FDB2--
>> 
>> -- 
>> The following information is important for all members of the Mac 
>> Visionaries list.
>> 
>> If you have any questions or concerns about the running of this list, or if 
>> you feel that a member's post is inappropriate, please contact the owners or 
>> moderators directly rather than posting on the list itself.
>> 
>> Your Mac Visionaries list moderator is Mark Taylor and your owner is Cara 
>> Quinn - you can reach Cara at [email protected]
>> 
>> The archives for this list can be searched at:
>> http://www.mail-archive.com/[email protected]/
>> --- You received this message because you are subscribed to the Google 
>> Groups "MacVisionaries" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/macvisionaries.
>> For more options, visit https://groups.google.com/d/optout.
> 
> 
> --
> Have a great day,
> Alex Hall
> [email protected]
> 
> 
> 
> 
> -- 
> The following information is important for all members of the Mac Visionaries 
> list.
>  
> If you have any questions or concerns about the running of this list, or if 
> you feel that a member's post is inappropriate, please contact the owners or 
> moderators directly rather than posting on the list itself.
>  
> Your Mac Visionaries list moderator is Mark Taylor and your owner is Cara 
> Quinn - you can reach Cara at [email protected]
>  
> The archives for this list can be searched at:
> http://www.mail-archive.com/[email protected]/
> --- 
> You received this message because you are subscribed to the Google Groups 
> "MacVisionaries" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/macvisionaries.
> For more options, visit https://groups.google.com/d/optout.

-- 
The following information is important for all members of the Mac Visionaries 
list.

If you have any questions or concerns about the running of this list, or if you 
feel that a member's post is inappropriate, please contact the owners or 
moderators directly rather than posting on the list itself.

Your Mac Visionaries list moderator is Mark Taylor and your owner is Cara Quinn 
- you can reach Cara at [email protected]

The archives for this list can be searched at:
http://www.mail-archive.com/[email protected]/
--- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.

Reply via email to