Results 1 to 2 of 2

Thread: QProcess does not execute Automator app in OSX 10.6

  1. #1
    Join Date
    Feb 2010
    Location
    Los Angeles
    Posts
    61
    Thanks
    9
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QProcess does not execute Automator app in OSX 10.6

    Hi All,

    I am having trouble executing an Automator app created and running under Max OS X 10.6. (same Qt code runs fine under 10.5). The exit code of QProcess is 255 (-1).
    I used process->start("/usr/bin/touch /Users/me/file.x") to verify that QProcess is running under 10.6 at all and it does.
    So it must have something to do with the Automator app.
    The automator app is 64bit, can that be the problem?

    Any suggestions

    Markus

  2. #2
    Join Date
    Feb 2010
    Location
    Los Angeles
    Posts
    61
    Thanks
    9
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QProcess does not execute Automator app in OSX 10.6

    I found the reason:

    the actual executable inside the /Contents/MacOS/ folder contains a space: "Application Stub".
    You have to rename it before it is executable with QProcess.

    Markus

Similar Threads

  1. How to execute a QProgressDialog once
    By franco.amato in forum Newbie
    Replies: 4
    Last Post: 16th March 2010, 16:36
  2. How to use the QProcess to execute the Browser ?
    By eric0214 in forum Qt for Embedded and Mobile
    Replies: 7
    Last Post: 21st December 2009, 10:06
  3. How to use the QProcess to execute the Browser ?
    By eric0214 in forum Qt Programming
    Replies: 2
    Last Post: 17th November 2009, 06:18
  4. Replies: 1
    Last Post: 21st August 2009, 07:10
  5. How to Execute Qt script from Qt
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 7th May 2007, 09:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.