Skip navigation
Currently Being Moderated

is it possible to run a shell script from AIR?

Sep 15, 2010 12:08 PM

I can not scan a local directory unless on of my installed files is chmod

755. i want to run a script on init() that will chmod 755 a file in the bin-debug directory.

 

Thanks in advance for your assistance.

 
Replies
  • Currently Being Moderated
    Sep 16, 2010 9:04 AM   in reply to madhooper

    Have you tried with NativeProcess API?

     
    |
    Mark as:
  • Chris Campbell
    8,533 posts
    May 4, 2010
    Currently Being Moderated
    Sep 19, 2010 11:18 AM   in reply to madhooper

    Glad you got this to work!  Do you mind sharing your solution for others that might run into this problem?

     

    Chris

     
    |
    Mark as:
  • Chris Campbell
    8,533 posts
    May 4, 2010
    Currently Being Moderated
    Sep 23, 2010 3:33 PM   in reply to madhooper

    Thanks for sharing!  I'm sure this will be useful!

     

    Chris

     
    |
    Mark as:
  • Chris Campbell
    8,533 posts
    May 4, 2010
    Currently Being Moderated
    Oct 19, 2010 5:44 PM   in reply to madhooper

    Hello,

    Are you still running into this problem?  I assume you had the extendedDesktop profile set in your application descriptor?

     

    Chris

     
    |
    Mark as:
  • Currently Being Moderated
    May 24, 2012 1:36 AM   in reply to Chris Campbell

    There are two things you need to do before you can change file in a release build, as Chris told add the extendedDesktop profile but also not just build your .air file but in your publish settings change it to .dmg

    This way your release build has the access it needs to the nativeProcess to be able to change the file to executable.

     

    More can be read about this here on my blogpost about this issue:

    http://www.8digits.be/create-a-shell-script-from-adobe-air/

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points