Well, you didn't mention the media player or the exact command you are using to open it. If you use the "activate" method on a application object then the application should be placed in the foreground. So, for example if you are using JavaScript for OSA commands it might look like: app = application("iTunes") app..activate())
Using the "open" command in terminal it is possible to force the new application to not be the foreground application but there is no mention of forcing it to be in the foreground. Also, just to be complete the AppleScript version of the commands listed above would be: tell application "iTunes" to activate In terms of your second question, I have not seen this behavior did you attempt to redirect voiceover output to a different sound device then the standard sound? Sounds like a bug to me. Best Wishes, Jonathan Cohn On 20 October 2016 at 13:08, - <dandun...@gmail.com> wrote: > > Hello, > > There are two things buggingg me which perhaps someone has the solution. > > First how does one make sure then when an app is started it is not done in > the background? > > When I start a media player app from within terminal and sometimes and > sometimes not the player starts in the background. > > I have to do a command+tab to get to it to exit if in the background. Then > I need to choose terminal to make it in the foreground. > > Sometimes when it is in the foreground, I exit the player and it takes me > back to finder in the application choice list, as though command+tab was > entered. I have to choose terminal once again to make it in the foreground. > > However usually when opening in the forground from terminal the player can > be exited as usual and terminal is there now as the foreground application > just like before the player was started. > > Second is a headphone question. I have a wired usb headphone. > > When using it letters entered by the keyboard are spoken from the > computer speaker and punctuation is spoken in the headphones. All speech > is otherwise in the headphones only. > > Has anyone a solution for either of these please? > > Thanks for any help. > > 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. You can reach mark > at: macvisionaries+modera...@googlegroups.com and your owner is Cara > Quinn - you can reach Cara at caraqu...@caraquinn.com > > The archives for this list can be searched at: > http://www.mail-archive.com/macvisionaries@googlegroups.com/ > --- 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 macvisionaries+unsubscr...@googlegroups.com. > To post to this group, send email to macvisionaries@googlegroups.com. > Visit this group at https://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. You can reach mark at: macvisionaries+modera...@googlegroups.com and your owner is Cara Quinn - you can reach Cara at caraqu...@caraquinn.com The archives for this list can be searched at: http://www.mail-archive.com/macvisionaries@googlegroups.com/ --- 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 macvisionaries+unsubscr...@googlegroups.com. To post to this group, send email to macvisionaries@googlegroups.com. Visit this group at https://groups.google.com/group/macvisionaries. For more options, visit https://groups.google.com/d/optout.