Need Guidance in Building an app With Sh Script Commands

Let me start off by saying this will be long:
I've been tasked with creating an application at work that provides a GUI interface to the user while it runs a shell script in the background. I have very limited experience with Xcode and the developer tools so please explain in simplest terms possible
On to the application. It will be broken down into five different GUI windows. I know I need to use IB, but thats about as far as I know how to pull this off.
1. Intro screen that gives a description of the program and a start button.
2. Asks the user to specify the location where they want to save their image and provide a name for it,then a next button. (I would like to do a drag and drop field if that is possible where they could drag the folder and the path would be read and have whatever name they type automatically append .dmg onto the end)
3. This window asks them to drag and drop (if possible) the windows partition into the window, and then click next.
4. A progress bar
5. Successfully finished.
There is an additional unix file that script calls as well
The script which needs to be modified to work for this program is:
#!/bin/sh
echo ""
echo ""
echo ""
echo "This script will create a sparsebundle for Windows imaging."
echo ""
echo "Please make sure to have an external Firewire drive to where your image will be saved connected to your machine"
echo ""
#echo "Type in how large you want your sparsebundle to be (ie 50g for 50 Gigabytes):"
#read "hd_size"
echo "MAKE SURE TO PRESS ENTER AFTER EACH STEP!!!"
echo "MAKE SURE TO RUN AS ROOT!!!"
echo ""
echo "Drag the icon of the folder or device you want to save your Windows image INTO this window (Because of the large size of the file that will be created, it is recommended to use a firewire device and/or folder.):"
read "target_disk"
echo "Type in the name you want your final image to be called (include .dmg to the end of the name. i.e. LIBRN310_SPR09.dmg)"
read "Image_Name"
echo "Step 1: sparsebundle creation"
echo "Please wait while your sparsebundle is created"
target_folder="$target_disk/Windows_ntfsclone_image"
if [ -e $target_folder ]; then
echo "A folder with the name 'Windows_ntfsclone_image' already exists. Please delete or rename this folder and launch this script again."
exit 0;
fi
/bin/mkdir $target_disk/Windows_ntfsclone_image
hd_size="`diskutil list | grep Vista | awk '{print int(1+ $4)}'`g"
/usr/bin/hdiutil create -type SPARSEBUNDLE -layout NONE -size $hd_size $target_folder/windows
echo "Your sparsebundle has been created here: $target_folder/windows.sparsebundle"
echo ""
echo "Your sparsebundle is being attached to the system as a device..."
sparsebundle_Device="`/usr/bin/hdiutil attach -nomount $target_folder/windows.sparsebundle`"
echo ""
echo "Your sparsebundle has been attached."
echo ""
echo "Step 2: Cloning your Windows NTFS volume to the sparsebundle."
echo "Cloning your Windows volume to the sparsebundle..."
Vista_Volume="/Volumes/Vista"
Vista_Device="/dev/`/usr/sbin/diskutil list | grep Vista | awk '{print $6}'`"
/usr/sbin/diskutil unmount $Vista_Device
$HOME/Desktop/Windows_Imaging_Tools/ntfsclone -f -f -O $sparsebundle_Device $Vista_Device
echo ""
echo "Windows has cloned to your sparsebundle."
echo ""
echo "Detaching sparsebundle..."
/usr/sbin/diskutil eject $sparsebundle_Device
echo "sparsebundle detatched"
echo ""
echo "Step 3: Converting the sparsebundle to scannable UDIF image for Multicast or Unicast ASR."
echo "Converting Windows sparsebundle to compressed Apple UDIF image."
sparsebundle_File="$target_folder/windows.sparsebundle"
/bin/mkdir $target_folder/Windows_Final_Image
Windows_Image_Folder="$target_folder/Windows_Final_Image"
/usr/bin/hdiutil convert $sparsebundle_File -format UDCO -o $Windows_Image_Folder/$Image_Name
echo ""
echo "Your sparsebundle has been sucessfully converted."
echo "It is located at $Windows_Image_Folder/$Image_Name"
echo ""
echo "Step 4: Scanning your $Image_Name image for restore..."
/usr/sbin/asr imagescan -source $Windows_Image_Folder/$Image_Name
echo ""
echo "Your $Image_Name has finished scanning. You can now use the image located at $Windows_Image_Folder/$Image_Name for Multicast ASR or Unicast ASR."
exit 0;

Couple of options:
- Pashua: http://www.bluem.net/en/mac/pashua
- Platypus: http://www.sveinbjorn.org/platypus

Similar Messages

  • Is there a way to build an App with CS5.5 that can run in older iPods

    Hello
    Does anybody know if there is a way to build an app with flash CS5.5 that can run in older iPods?, just like with CS5?
    Each IPA I build with CS5.5 cannot be installed in my iPod 8GB with iOS 4.2 and before with CS5 I could install all the IPAs there and test.
    The lack of support to iPod 8GB would be limitating for the market and sales...
    Is there some setting to build IPA to older iPods?
    Thanks

    AIR 2.7 release notes:
    AIR runs on "iPodTouch 4th generation iPhone 3GS and iPhone 4iPad".
    But:
    AIR 2.7 runs on iPod Touch 3rd Generation, too - but only on the 32GB and 64GB models. The 8GB model is in fact only an older 2nd gen iPod Touch.
    We tested this and we even have some apps in the app store running on the iPod Touch 3rd gen.
    I posted about this, look here:
    http://forums.adobe.com/thread/892541?tstart=0

  • Build Surface app with Surface sdk 2.0 ?

    Hi All,
    I need to build an application with Visual Studio 2013. and deploy it on Surface 2.0
    I need to have Data storage (MS SQL).
    What are the components that I need to build and deploy such app?
    Thanks
    Moahamd

    I posted this solution on another thread -- copied here for you:
    SOLVED.
    First, look at your ad-hoc provisioning file in text edit (just view it, don't overwrite it!)
    If it does NOT contain a line that says "<key>get-task-allow</key>" then you need to go to the program portal and get a NEW ad-hoc provisioning profile. There is a workaround where you can use the provisioning profile without this key, but Apple apparently has added this key to the ad-hoc provisions, and you might as well have the latest.
    However, that is not the final fix.
    The next thing you have to do is add a new file to the root of your project ... file, new file, iphone, code signing, entitlements. Call it "dist.plist" ...
    Open that file, and it will say "get-task-allow" with a checkmark for "true" -- this needs to be FALSE. Uncheck the checkbox, or if in text mode, type in "false"
    OK, almost there!!!
    Open the target build info window and where it says "Code Signing Entitlements" add "dist.plist"
    CLEAN THE BUILD
    BUILD AND GO
    ENJOY.

  • I can't download the apps with big size like need for spees, but in apps with normal size(less than 100KB)there is no problem,is there any body who can help me?

    I can't download the apps with big size like need for spees

    Have a little patience. 4 minutes is only a short time for someone to find your post and reply to it. Also clicking on "This Solved My Problem" marks your problem as solved so many folks that may otherwise help will pass the question by since it is "solved."
    I suggest you start a new question that gives a good title to a specific problem. Then in the body of the thread describe the problem in detail, tell us what steps you have tried so far to correct the problem, what happened, and what error messages you received.

  • Building JEE apps with JFX

    Based on recent interest in the topic, I'm putting together a blog series on building business applications with JavaFX 2, using popular JEE technologies:
    http://zenjava.com
    Currently the focus is on using Spring (annotation based config - ZERO XML) to achieve Dependency Injection with FXML and controllers. I'm planning however to eventually cover topics such as threading (with screen blocking while busy), client-server (using web services and spring remoting), databases (using hibernate and spring transactions) and authentication, security (using spring security) and various other bits and pieces.
    The intent is to provide a guide for people wanting to work with these tools, but also to get community feedback and suggestions on best practices. I look forward to your comments.

    Hi Zonski,
    That sounds like a great idea. I have a similar setup with a current live application written in JavaFx (Script) 1.3 and Java, which will need to be converted across to the latest JavaFX (perhaps Visage) next year. Similar but not exactly the same. The application uses Spring remoting and also Spring Security, with XML for configuration. For the ORM Cayenne is used.
    ~ Chris

  • NEED a java coder to help with a script for a programs of mine.

    I play a game, very competitively, and need someone to make and compile a script for me. I am willing to pay upwards of 100 USD for this script made to MY standards. There will be a lot of work involved...Probably 12 hours studying my game and the purpose of the script(s). I will be buying 2-3 scripts, at roughly 50-100 USD each, depending on the quality. I will transfer the money via paypal, or other means if we can reach an agreement.
    Please IM me at Chadtrapier on AIM or send an email to [email protected]
    Or...Add me on MSN - [email protected]
    We can reach an agreement with these scripts...
    Thank you, I will also check this thread, so reply if you would like.
    ~Chad

    Ummm. Do you think that's a lot of money or something? Think in the range of 40-60 per hour. And if you're talking about warcraft I don't think they java hooks to make bots. I think you need to figure out what your problem is first and maybe learn to code them yourself.

  • WLC: Need to change pre-shared key with a script

    Hello,
    I need to change pre-shared key on a Guest Wi-Fi with a script.
    Does anybody has an idea how to find the right entry in the WLC 2125 MIB to change it through SNMP?
    Gorazd

    Hi,
    That is a textFramePreferences property
    mySelection.textFramePreferences.verticalThreshold = Number (range 0- 8640)
    ID Object Reference says:
    "...The maximum amount of vertical space between two paragraphs. Note: Valid only when vertical justification is justified; the specified amount is applied in addition to the space before or space after values defined for the paragraph..."

  • Building Flash apps with FB?

    Hi gang,
    Sorry if this is beating an old horse, but I am not finding anything useful in my searches... We are building a suite of apps for Flash 10, which MUST be Flash, not Flex, and the devices we are deploying to only support Flash.
    I am using FB4, but when I try to do things like add a button to the screen, I can only get to the Flex versions, and not the Flash things that would appear in fl.controls.
    It strikes me as very odd that FLASH Builder does not have the libraries included and part of the New ActionScript Project build.
    Am I totally missing the boat here, or is this a common issue that I need to do something to overcome (and if so, what is it that I need to do)?
    Thanks a million!
    Chris

    It sounds like you may want to look at this MAX 2009 video:
    Coding with Flash Professional and Builder
    http://tv.adobe.com/watch/max-2009-design/coding-with-flash-professional-and-builder/
    Jason San Jose
    Quality Engineer, Flash Builder

  • Build iOS app with Flash Builder Burrito.

    I have some Android apps built with Flash Builder Burrito that I want to deploy on iOS.
    Can it work?
    How?
    Is the folowing working ? StageOrientationEvent and StageWebView Class
    Best regards,
    mark

    Solved it.  Just added the following in the <InfoAdditions> tag for iPhone in my app descriptor XML file:
      <key>UIRequiredDeviceCapabilities</key>
    <array>
    <string>wifi</string>
    <string>armv6</string>
    <string>armv7</string>
    </array>

  • Do I need Pseudoanacron or other cron apps with Lion?

    Do I need an automated cron app like Pseudoanacron to run system maintenance tasks with OSx Lion?

    No.
    Newer Macs do not need any such applications.
    Once in awhile let it sleep during the night.
    Best.

  • Introduction to PhoneGap Build - Building your first app | Building Mobile Apps with PhoneGap Build | Adobe TV

    In this video you will learn how easy it is to build and update your first mobile app using web technologies with the Adobe PhoneGap Build cloud service and learn about two new great improvements to speed developer workflow!
    http://adobe.ly/18qDiVR

    I just installed the latest Edge Code but there's no PhoneGap build icon as seen in the video.  I don't see any way to turn this feature on.

  • Has anyone been able to release-build their app with TLF 2.0?

    I can build a debug build of my app just fine.  TLF 2.0 features are working.  However, when I try to export a release build I get:
        No signed digest found in catalog.xml of the library, /Applications/Adobe Flash Builder 4/sdks/4.1.0_tlf2.0/frameworks/libs/framework.swc. Compile the library with -create-digest=true and try again.
        No signed digest found in catalog.xml of the library, /Applications/Adobe Flash Builder 4/sdks/4.1.0_tlf2.0/frameworks/libs/rpc.swc. Compile the library with -create-digest=true and try again.
        No signed digest found in catalog.xml of the library, /Applications/Adobe Flash Builder 4/sdks/4.1.0_tlf2.0/frameworks/libs/spark.swc. Compile the library with -create-digest=true and try again.
        No signed digest found in catalog.xml of the library, /Applications/Adobe Flash Builder 4/sdks/4.1.0_tlf2.0/frameworks/libs/sparkskins.swc. Compile the library with -create-digest=true and try again.
    To get TLF 2.0 working I followed the steps on the blog plus I had to change the linkage for textLayout.swc to merged to code.
    I tried to modify the build.xml script in the frameworks directory to call compute-digest="true", but it didn't seem to make any difference.
    Has anyone gotten this to work?

    I'm using ant.  It looks like the command you gave me is for building the textLayout.swc.  I already have the textLayout.swc from the sourceforge download.  I'm looking for a way to integrate it into the 4.1.0 (or 4.0.0) sdk.  I followed the instructions on the TLF blog post, including running the ant command to rebuild spark.swc.  However, when I try to do a release build of my project using that modified sdk I get the error message in the first post.

  • VS2015 Preview - building android app with assets

    I have successfully built and deployed a native android application using visual studio 2015 preview however I can't figure out how to include the assets into the apk. I've tried adding a custom build step to copy them into $(OutDir)\Package\res\assets after
    Build and ant does indeed 'crunch' them. But it fails with this message: [aapt] invalid resource directory name: C:\xxxxx\ARM\Debug\Package\res assets. It looks like it's not adding the assets folder correctly to the path? Or is there another way to add
    the assets to the apk?

    As VS 2015 is pre-release software, I suggest you connect with the dev team about your issue.
    https://connect.microsoft.com/VisualStudio/content/content.aspx?ContentID=31113

  • Need Guidance to create a form with Upload,browser and clear button

    Task :1) Browse should open a dialog box window for user to select an excel file on his local machine. Once the name of file is on the ticket item file name, the upload button should load data of this file into a database stage table.
    2) Host being called from forms u .Once it reaches server it is easy to load in DB via forms
    3) File transfer should happen automatically when user presses the button on form the code in the button should make use of host command and fire command to move the file.
    version :-FORMS10g , OS - XP

    Have you tried searching the web?  There are numerous examples of how to read and Excel file into a Form.  Here is just one, for example: WebUtil: How to Read an Excel file into an Oracle Form .  This example can easily be modified to write the file to a table versus displaying it in the form.  Or...you could simply read the file into a base table block and use standard Forms Commit processing to save the data to your table.
    Craig...

  • Mobile apps with phonegap + mysql ?

    Hi,
    i was searching for a long time but didn't find answers. is it possible to show database-driven content within mobile apps made with dreamweaver cs6 ?
    If so, are there any examples or tutorials on the adobesite or elsewhere?
    Looking forward for any answer :-)

    PhoneGap builds mobile apps with HTML, CSS, and JavaScript. You cannot use a server-side language, such as PHP, with PhoneGap.
    Presumably, you want to connect with a MySQL database on a remote server. To do so, you would need to use Ajax to send and receive data from the MySQL database. You can use jQuery to send and receive data as JSON. PHP has JSON functions that decode and encode data as JSON strings.
    How difficult or easy you would find setting this up depends on your knowledge of jQuery and PHP. I don't know of any tutorials that show how to pull everything together for PhoneGap, but it shouldn't be too difficult to find tutorials for using jQuery Ajax to communicate with MySQL.

Maybe you are looking for

  • ** How to use TO_DATE function in Stored Proc. for JDBC in ABAP-XSL mapping

    Hi friends, I use ABAP-XSL mapping to insert records in Oracle table. My Sender is File and receiver is JDBC. We use Oracle 10g database. All fields in table are VARCHAR2 except one field; this is having type 'DATE'. I use Stored procedure to update

  • Text wrap option not working..

    Lately I have not been able to use the Text Wrap function in CS3. I feel like it's worked up until recently, but now when I open the Text Wrap window there are no options listed - it's just a blank gray box. When I click on the dropdown menu on the t

  • Black screen with 7950GT digital connection

    Hello to all in the forum. Sorry my first post is to ask for help  :( My PC spec A8N32-Sli Deluxe motherboard AMD Athlon 64 3800+ processor 2GB Ram Windows XP Pro service pack 3 and all updates. MSI 7950GT Grapics card I have MSI 7950GT for 3 yrs and

  • DspControlConfig.properties

    We're using ODSI 10.3.0 and utilizing the dspControlConfig.properties file to override the endpoints for the data service controls. We've noticed that occasionally this file gets updated by the server at runtime. It adds these lines to the file even

  • OBIEE AGO function Problem

    Hi all, What a funny attitude in OBIEE11g. when i apply the following script in OBIEE11g then it work AGO("myFact.rev", "Time"."TimeHierarchy - QUARTER"."MONTH", MONTH(CURRENT_DATE)) but the following is not working, AGO("myFact.rev", "Time"."TimeHie