The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > 3rd Party Apps Requests
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-02-2007, 01:09 PM
What's Jailbreak?
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Scripts from the GUI?

Hey, im trying to call a script from the GUI. I have an app put together that restarts springboard, but i cant get it to run from just clicking it.

::code::

killall SpringBoard

::end of code::

its chmod'd correctly and everything, i can run it from SSH, but when i click on the app, i get the default picture, and it just hangs for 15 seconds and goes back to the SpringBoard with out relaunching it. any ideas? or am i missing something?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 11-02-2007, 02:14 PM
drunknbass's Avatar
the kanye west of programming
 
Join Date: Jul 2007
Posts: 382
Thanks: 0
Thanked 47 Times in 38 Posts

i didnt think that even worked.. and if you are using it in terminal thats prob why.. theres alot better ways to kill sb . if you have to use a sh script to do it theres another line that works, ill try and dig it up when i get home.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 01-10-2008, 06:48 AM
doht
Guest
 
Posts: n/a

that's exactly my problem. i'm trying to launch a shell script from the gui via finger tips. i can see the icon, and adjusted the info.plist file for the script. when launching i can see the standard app launching screen, then the device sleeps/hangs for about 10 seconds and i'm back on the homescreen.

it is not to discuss why i want to launch a script but the problem of launching the script via gui itself. a reason fot this might be, i.e., to call ssh ....... So you don't have to type the command each time, but launch it via the script.

does anybody know, how to link the shell script and the gui icon?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 01-10-2008, 09:42 AM
iPhone? More like MyPhone
 
Join Date: Oct 2007
Posts: 152
Thanks: 5
Thanked 13 Times in 12 Posts

If you have the image files .png already for icon,

you require a Info.plist file with this info, repalce nameofscripthere, and Programname:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>Nameofscripthere.sh</string>
<key>CFBundleIdentifier</key>
<string>com.authorsname.ProgramName</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
</dict>
</plist>

and then just use normal script file.


Theres alot better ways to implement springboard restart.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > 3rd Party Apps Requests

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 03:05 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top