Bleh, I forgot the line that goes before: set thename to name of (info for theApp)
On Apr 26, 11:42 am, "Jon Stovell (a.k.a. Sesquipedalian)" <[email protected]> wrote: > Wait, I take it back. That would still have the .app extension. > Instead, try this: > > tell application "System Events" > set procnames to name of every application process > repeat with i from 1 to count procnames > if item i of procnames is in (thename as text) then ¬ > set (visible of first application process whose ¬ > name is item i of procnames) to false > end repeat > end tell > > On Apr 26, 11:08 am, "Jon Stovell (a.k.a. Sesquipedalian)" > > > > <[email protected]> wrote: > > 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.
