set visible of process (name of theApp) to false

On Apr 25, 12:12 pm, Daniel <[email protected]> wrote:
> Possibly with some saved-command and proxy object trickery, but I'm
> not sure how those work.
>
> But it should be possible with applescript, but for one problem. A
> script like:
>
> on open theApp
>         tell application theApp to launch
> end open
>
> should work for open in background, and adding
>
> tell application "System Events" to set visible of process theApp to
> false
>
> should allow hiding, but AppleScript is expecting the LaunchServices
> name of the app, there, not its path. So if any AppleScript wizards
> know how to convert a path to a name (it won't be reliable to just do
> a "get POSIX path" and run it through a path-and-extension-stripping
> regex), this should be able to work. It _does_ work if I take out "on
> open" and replace theApp with "iChat," so I know the concept is sound,
> but I don't know how to do the conversion.
>
> On Apr 24, 1:18 am, pendolino <[email protected]> wrote:
>
>
>
> > i was wondering if this could be done via QS when launching any app as
> > a general default or as a specific command at a launch instance.

Reply via email to