In TextSoap 7, the text processing code was integrated into the main
application. People did not like the launching effects, so I added an
agent mode which effectively launches TextSoap invisibly and briefly.
This is done by telling the app to launch as an agent. Since TextSoap
Menu and the Automator actions can control the launch of TextSoap,
they're able to signal this option.
The problem comes in with AppleScript and OS X Services, which don't
really allow me to tap into the launching of the app (they launch it
themselves), so they launch it as any standard app. This of course
happens with any scripting app: BBEdit, TextEdit, etc.
There is a near term solution that will work to prevent the app from
becoming visible when invoked with an AppleScript. It basically
requires you to manually launch the app in agent mode before any
"tell" statement directed at the app. Once the app is launched
(invisibly), the tell will simply direct its commands to the invisible
TextSoap.
do shell script "open -b com.unmarked.textsoap7 --args --agent"
tell application "textsoap7" to cleanClipboard with cleaner
It is important to understand that the app only stays around for a few
minutes after its been launched in agent mode (to prevent it from
taking resources for a long time) so you'll need to add that shell
script line before any tell statement to insure it is launched.
Mark
> --
> You received this message because you are subscribed to the Google Groups "TextSoap" group.
> To post to this group, send email to text...@googlegroups.com.
> To unsubscribe from this group, send email to textsoap+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/textsoap?hl=en.
>
--
Mark Munz
unmarked software
http://www.unmarked.com/
I am aware that this remains an issue for certain customers and am
looking at better solutions to the issue long term. Sandboxing has
created some additional complexities to solving this - as I want a
solution that can work for both Mac App Store and direct download
versions.
Mark
> --
> You received this message because you are subscribed to the Google Groups
> "TextSoap" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/textsoap/-/wrG4gQS6KU8J.