Results 1 to 7 of 7

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Running a script from an icon?

  1. #1
    Default Running a script from an icon?
    Does anyone know how I would go about running a shell script from an icon? I tried to just make a zyz.app folder and put the script in it (with the default files that are in all the app folders) renaming the .sh script as .app but it didn't work. Any help would be appreciated!

    -Brand

  2. #2
    Okay after I read your post I just have to type this...

    Um yeah, that's a good way to do it if you want it NOT to work.

    Again, I'm sorry but I had a flashback to a "Nick Burns, you company's computer guy" SNL skit... cracked me up... okay...

    Easy way, maybe:
    Install and get the Terminal app working, except name the folder zyz.app
    Next edit the Info.plist in the zyz.app folder so it has "Terminal <zyz.sh" on the "CFBundleExecutable" string

    You also have to make sure you CHMOD on your .sh file to allow execution.

    Good luck and sorry for messin' with yah.
    Update I have not been able to get it to work. However if you d/l iDecor you can revise the iDecor app. It's just a text (script) file.
    Last edited by CyberGreg; 08-11-2007 at 12:57 AM. Reason: clarification

  3. The Following User Says Thank You to CyberGreg For This Useful Post:

    princebrand (08-11-2007)

  4. #3
    Hmm... I've already got Terminal, NES and VRecord working but for some reason I can't get your suggestion to work. Ah well. I really need to learn how to compile apps for the iPhone I guess. In the interim, I've posted my script file (a Screen Swapper called iSwap.sh) in the downloads area. Maybe someone can app-it up!

  5. #4
    so what does this iswap do... switch sreens...pls expand on that.

  6. #5
    Okay, it basically gives you an alternate desktop that you can populate with more apps giving you roughly twice the space for icons/apps. I've put an app-ized version up in the download section. I also put together a demo video. You can see it here: http://www.youtube.com/watch?v=TLqG1-XR1ug&v3

    -KennX

  7. #6
    Quote Originally Posted by princebrand View Post
    Does anyone know how I would go about running a shell script from an icon? I tried to just make a zyz.app folder and put the script in it (with the default files that are in all the app folders) renaming the .sh script as .app but it didn't work. Any help would be appreciated!

    -Brand
    Okay download the "iDecor" app and add your script code in the file named iDecor.


  8. #7
    Owner / Founder - ModMyi
    aka poetic_folly
    Kyle Matthews's Avatar
    Join Date
    May 2007
    Location
    Tampa, Florida, United States
    Posts
    8,483
    Thanks
    570
    Thanked 4,809 Times in 1,229 Posts

    KennX, I love your app.
    .


    ↑ ↑ ↓ ↓ ← → ← → B A [select] [start] Kyle Matthews

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •