You haven't stated what error message you receive from launchd or how you've 
tried to launch it, but you might try getting rid of the "open" command and 
refer directly to the executable:

        <key>ProgramArguments</key>
        <array>
        <string>/Applications/Programme\ 
\(Benutzer\)/DragThing.app/Contents/MacOS/DragThing</string>
        </array>
HTH,
-Nate


On Feb 21, 2012, at 6:55 AM, Rudolf O.Durrer wrote:

> Hi
> 
> I tried to write a short launchagent for Dragthing.app
> I first tried:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
> "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
> <plist version="1.0">
> <dict>
>       <key>Label</key>
>       <string>LaunchDragthing</string>
>       <key>Program</key>
>       <string>open /Applications/Programme\ 
> \(Benutzer\)/DragThing.app</string>
>       <key>RunAtLoad</key>
>       <true/>
> </dict>
> </plist>
> 
> This thing did not load. 
> 
> So I tried a modification:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
> "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
> <plist version="1.0">
> <dict>
>       <key>Label</key>
>       <string>LaunchDragthing</string>
>       <key>ProgramArguments</key>
>       <array>
>               <string>open</string>
>               <string>/Applications/Programme\ 
> \(Benutzer\)/Dragthing.app</string>
>       </array>
>       <key>RunAtLoad</key>
>       <true/>
> </dict>
> </plist>
> 
> No succes, launchd will not launch.....
> What do I have to change
> Rudolf
> 
> 
> _______________________________________________
> MacOSX-talk mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/macosx-talk

_______________________________________________
MacOSX-talk mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Reply via email to