Absolue beginner need your help with basics of shell / applescript and xode

Guys,
I'm an absolute beginner in both xcode and applescript trying to wrap a few shell commands with some basic graphical elements.
I will need your help after 2 days of tests and un-successful trials.
Trying to display "$ifconfig en0" shell results into a text box.
Here is what I'm doing:
property networkif : missing value
property dhcpview : missing value
set the dhcpview to do shell script "/sbin/ifconfig " & networkif
I can't have this accepted:
set contents of text field "hmmm" to "DHCP " & dhcpview
hmm is the name I have set under Interface Builder to a text box (NSTextView object)
Xcode compiler returns me an error :
ToolAppDelegate.applescript:99: error: A “"” can’t go after this identifier. (-2740)
Command /usr/bin/osacompile failed with exit code 1
while doing this is absolutely working but on a separate popup window:
display dialog " Here is your IP address in ALU's network: " & dhcpview
I have no clue what I'm doing wrong.

It looks like you are trying to use *AppleScript Studio* syntax in an AppleScriptObjectiveC project - the way you connect the user interface items to your script is different in the new framework. If you are creating a new ASOC project, take a look at MacScripter's entry level tutorial AppleScriptObjC in Xcode for some examples.

Similar Messages

  • I need your help with a decision to use iPhoto.  I have been a PC user since the mid 1980's and more recently have used ACDSee to manage my photo images and Photoshop to edit them.  I have used ProShow Gold to create slideshows.  I am comfortable with my

    I need your help with a decision to use iPhoto.  I have been a PC user since the mid 1980’s and more recently have used ACDSee to manage my photo images and Photoshop to edit them.  I have used ProShow Gold to create slideshows.  I am comfortable with my own folder and file naming conventions. I currently have over 23,000 images of which around 60% are scans going back 75 years.  Since I keep a copy of the originals, the storage requirements for over 46,000 images is huge.  180GB plus.
    I now have a Macbook Pro and will add an iMac when the new models arrive.  For my photos, I want to stay with Photoshop which also gives me the Bridge.  The only obvious reason to use iPhoto is to take advantage of Faces and the link to iMovie to make slideshows.  What am I missing and is using iPhoto worth the effort?
    If I choose to use iPhoto, I am not certain whether I need to load the originals and the edited versions. I suspect that just the latter is sufficient.  If I set PhotoShop as my external editor, I presume that iPhoto will keep track of all changes moving forward.  However, over 23,000 images in iPhoto makes me twitchy and they are appear hidden within iPhoto.  In the past, I have experienced syncing problems with, and database errors in, large databases.  If I break up the images into a number of projects, I loose the value of Faces reaching back over time.
    Some guidance and insight would be appreciated.  I have a number of Faces questions which I will save for later. 

    Bridge and Photoshop is a common file-based management system. (Not sure why you'd have used ACDSEE as well as Bridge.) In any event, it's on the way out. You won't be using it in 5 years time.
    Up to this the lack of processing power on your computer left no choice but to organise this way. But file based organisation is as sensible as organising a Shoe Warehouse based on the colour of the boxes. It's also ultimately data-destructive.
    Modern systems are Database driven. Files are managed, Images imported, virtual versions, lossless processing and unlimited editing are the way forward.
    For a Photographer Photoshop is overkill. It's an enormously powerful app, a staple of the Graphic Designers' trade. A Photographer uses maybe 15% to 20% of its capability.
    Apps like iPhoto, Lightroom, Aperture are the way forward - for photographers. There's the 20% of Photoshop that shooters actually use, coupled with management and lossless processing. Pop over to the Aperture or Lightroom forums (on the Adobe site) and one comment shows up over and over again... "Since I started using Aperture/ Lightroom I hardly ever use Photoshop any more..." and if there is a job that these apps can do, then the (much) cheaper Elements will do it.
    The change is not easy though, especially if you have a long-standing and well thought out filing system of your own. The first thing I would strongly advise is that you experiment before making any decisions. So I would create a Library, import 300 or 400 shots and play. You might as well do this in iPhoto to begin with - though if you’re a serious hobbyist or a Pro then you'll find yourself looking further afield pretty soon. iPhoto is good for the family snapper, taking shots at birthdays and sharing them with friends and family.
    Next: If you're going to successfully use these apps you need to make a leap: Your files are not your Photos.
    The illustration I use is as follows: In my iTunes Library I have a file called 'Let_it_Be_The_Beatles.mp3'. So what is that, exactly? It's not the song. The Beatles never wrote an mp3. They wrote a tune and lyrics. They recorded it and a copy of that recording is stored in the mp3 file. So the file is just a container for the recording. That container is designed in a specific way attuned to the characteristics and requirements of the data. Hence, mp3.
    Similarly, that Jpeg is not your photo, it's a container designed to hold that kind of data. iPhoto is all about the data and not about the container. So, regardless of where you choose to store the file, iPhoto will manage the photo, edit the photo, add metadata to the Photo but never touch the file. If you choose to export - unless you specifically choose to export the original - iPhoto will export the Photo into a new container - a new file containing the photo.
    When you process an image in iPhoto the file is never touched, instead your decisions are recorded in the database. When you view the image then the Master is presented with these decisions applied to it. That's why it's lossless. You can also have multiple versions and waste no disk space because they are all just listings in the database.
    These apps replace the Finder (File Browser) for managing your Photos. They become the Go-To app for anything to do with your photos. They replace Bridge too as they become a front-end for Photoshop.
    So, want to use a photo for something - Export it. Choose the format, size and quality you want and there it is. If you're emailing, uploading to websites then these apps have a "good enough for most things" version called the Preview - this will be missing some metadata.
    So it's a big change from a file-based to Photo-based management, from editing files to processing Photos and it's worth thinking it through before you decide.

  • I need your help with buying one of your software programs.

    I need your help with buying one of your software programs.
    First of all I do not want to join this “Creative Cloud” for a monthly plan.
    Adobe Illustrator CS6 is what I am wanting but every time I click on the buy button is keeps sending me to a rent page to use but I don’t want this I want to buy it program for my own use. I don’t want to rent it I want to buy it like all the other Adobe software programs that I have bought from you in the past.
    Can you help with problem?
    Tim Adams
    [email protected]

    You can buy CS6 from this page
    Creative Suite 6

  • I need your help with solving a non-standard solutions.

    Hello!
    I need your help with solving a non-standard solutions.
    My name is Andrii and I represent the civil charity. Not so long ago, one man gave us the iPhone 4S (as a donation).
    But later - it became known that this iPhone can not work with SIM cards Ukrainian mobile network operators, as it is blocked by Verizon.
    Is there a way to unlock it with your help, and how it can be done?
    I hope for your understanding and assistance in this matter!
    Thank you.

    Contact a third party unlocking service.
    Purchase an unlocking code.

  • Hello  I need your help with installing the flash drive into my laptop

    Hi
    I am Rachel Friedman asking for your help with installing the flashdrive player into my laptop.
    Thanks
    Rachel

    To give you any useful advice, I'm going to need to know more about your computer and browser:
    https://forums.adobe.com/message/5249945#5249945

  • Need your help with the SaveAs function plz

    Good day everyone, 
    I need your help yet again to figure out if what im trying to acomplish is even possible within Livecycle designer.
    My issue is simple in nature, prevent the SaveAs "open window" to show up when they press the disk icon or use the saveAs option from the File menu if some of my fields are not fill-in.
    To do so, i placed the code into the Pre-save area of my form and that code checks if certain fileds are filled-in are not.
    If there not, i want to tell the user to fix this before the SaveAs occurs.
    But right now, the problem is that the "SaveAs open" window shows up FIRST i have to tell where i will save the file and all that good stuff and THEN my code gets activated.
    I was able to create my onw SaveAs button and it works well, the problem is that i want to also capture any save's that are executed around the form (the disk icon, the SaveAs in the FileMenu and the Ctrl+s)
    Is there a way to do just that? right now i would be ok in just being able to tell Livecycle to cancel the SaveAs action if that was possible, but i cant find anyway of doing that neither
    Your help is always appreciated
    Thanx a lot.

    I am having same problem with a 2011 year tax PDF fill in form I JUST got from IRS website.
    The actual form is the 2011 8829.
    I am running Windows 7 64 bit,   Adobe Reader X version 10.1.4.
    After trying to open the doc (nothing displays) I go to properties, and it says ...
    Title:  2011 Form 8829
    Author:  SE:W:CAR:MP
    Created: 12/23/2008
    PDF Producer:  Adobe LiveCycle DSesigner ES 8.2.
    PDF Version:  1.7 (Acrobat 8.x)
    Tagged PDF: No
    Fast Web View:  No
    Yikes ... was hospitalized last year ... now I have 9 days to file.

  • New to Programming, need your help with writing code for java in Xcode.

    Hey everyone! Sorry if I sound like a total idiot here with a bunch of developers but I could really use your help. I am in college and having a bit of problems with my intro to programming class. The class is entirely Java based and so, after having to use dos windows on my grandpas crappy laptop I found out about xcode. I downloaded and installed it but I am having problems seeing where exactly it is that I am to write my code for a normal java application. Any help would be greatly appreciated! I wrote it on the bottom of a bunch of code that looked strange to me. For relatively simple java programs I chose the java application template. Is there something here that I missed?

    The Java Application project template looks like it sets up an application and some kind of starting UI using Swing/AWT. I didn't look at it too indepth, but if you are in an introductory course this might be more than you need to complete your assignments. There doesn't seem to be blank Java template, so I don't know what you should use. Perhaps just a blank project you add your .java files to.
    To answer where to write code, you would write it in your .java files under the /src folder. Execution begins in
    public static void main(String args[]) {}
    in YourAppName.java, then creates an object based on your application class, and runs the code from there to display the UI.

  • Hi guys, need your help with iCloud notes on Mac 10.7.5; I've found this feature's more useful comparing with stickers, however can't pin notes to desktop or dock, "double click"on the note doesn't work with this version of software.

    Hi guys! Need you help with iCloud Notes on Mac Pro 10.7.5. I've found this apllication more useful comparing with "stickers", however can't pin it to desktop or dock. Thanks a lot in advance!

    Hi guys! Need you help with iCloud Notes on Mac Pro 10.7.5. I've found this apllication more useful comparing with "stickers", however can't pin it to desktop or dock. Thanks a lot in advance!

  • I need your help with pixels!

    I recently upgraded to PSE9 from PSE6 for Mac.  When I work, I start with a document set at 100 ppi because I will be saving it for web applications.
    With the previous program, I could layer files on this document that were 300ppi and they would size beautifully on the document. I would actually need to make them larger. Now when I layer a 300ppi image on top of my 100ppi document, the image is HUGE and I have to shrink the document way down in order to find the resize boxes to make it fit. Is there something I can do to make these 300ppi images not show up in their actuall size on a document that is only 100ppi???
    Thanks for your help!
    Karen

    I recently upgraded to PSE9 from PSE6 for Mac.  When I work, I start with a document set at 100 ppi because I will be saving it for web applications.
    With the previous program, I could layer files on this document that were 300ppi and they would size beautifully on the document. I would actually need to make them larger. Now when I layer a 300ppi image on top of my 100ppi document, the image is HUGE and I have to shrink the document way down in order to find the resize boxes to make it fit. Is there something I can do to make these 300ppi images not show up in their actuall size on a document that is only 100ppi???
    Thanks for your help!
    Karen

  • Need Your Help with Swapping SWF files

    Hello,
    I am need to swap Two SWF files. I am acheving this by make
    one swf as a holder. call it main.fla main.swf file. Embed that
    file into my html document. In that file I placed one button with
    the
    following action :
    on (release) {
    loadMovieNum("second.swf", 1);
    in that file have a button with action to load the 3rd file :
    on (release) {
    loadMovieNum("3rd.swf", 1);
    by loading them in same level (1) they will replace each
    other. My problem is that my SWF files obtain some information
    using combination of PHP and XML file. I have noticed when I place
    the SWF with it’s required PHP and XML in separate folders
    the SWF file is uploaded (swapped) but since the PHP files are NOT
    run by the server my dynamically generated XML files are empty and
    therefore the uploaded SWF file has not information expect the SWF
    file. Is there any way to get round this problem?
    Thank you in advance for your help and hope you have a great
    day.
    Cheers,
    Babak

    Khoramdin wrote:
    > Hello,
    >
    > I have two separate Flash SWF files which I would like
    upload into the same
    > HTML file. But I would like to load only one of them at
    the time and would
    > like to have a Button on each SWF Flash file which
    causes the other SWF to be
    > loaded.
    >
    > hmmm.. I am not sure if I managed to make sense. :o) Let
    me try it one more
    > time. :o) I would like to swap one SWF file for another
    SWF file by clicking
    > on the buttons which are placed on the SWF files! :o)
    make one swf as a holder. call it main.fla main.swf file.
    Embed that file in your html document. In that file place
    button with the
    following action :
    on (release) {
    loadMovieNum("second.swf", 1);
    in that file have a button with action to load the 3rd file :
    on (release) {
    loadMovieNum("3rd.swf", 1);
    by loading them in same level (1) they will replace each
    other.
    Pretty simple..uh ?
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Need your Help with Swapping SWF File Problem

    Hello,
    I have two separate Flash SWF files which I would like upload
    into the same HTML file. But I would like to load only one of them
    at the time and would like to have a Button on each SWF Flash file
    which causes the other SWF to be loaded.
    hmmm.. I am not sure if I managed to make sense. :o) Let me
    try it one more time. :o) I would like to swap one SWF file for
    another SWF file by clicking on the buttons which are placed on the
    SWF files! :o)
    I was wondering if that is possible or I should think of
    another way to get around this problem of mine.
    Thank you very much for your help and have a great day.
    Cheers,
    Babak

    Khoramdin wrote:
    > Hello,
    >
    > I have two separate Flash SWF files which I would like
    upload into the same
    > HTML file. But I would like to load only one of them at
    the time and would
    > like to have a Button on each SWF Flash file which
    causes the other SWF to be
    > loaded.
    >
    > hmmm.. I am not sure if I managed to make sense. :o) Let
    me try it one more
    > time. :o) I would like to swap one SWF file for another
    SWF file by clicking
    > on the buttons which are placed on the SWF files! :o)
    make one swf as a holder. call it main.fla main.swf file.
    Embed that file in your html document. In that file place
    button with the
    following action :
    on (release) {
    loadMovieNum("second.swf", 1);
    in that file have a button with action to load the 3rd file :
    on (release) {
    loadMovieNum("3rd.swf", 1);
    by loading them in same level (1) they will replace each
    other.
    Pretty simple..uh ?
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Need Your Help with Listbox

    Hello,
    I have created a media-player which works just fine. I have a
    question regarding the
    Listbox which I am using to display the list of musics
    avaliable for playing which are
    played in senquence.
    My question is that I can select any music from the Listbox
    but there is not graphical
    representation such as "a hand with the pointed figure" or a
    colour variation while the
    clourser is over the name of the music in the Listbox. Is
    there anyway I can create this
    graphical change when the courser is over a name in the
    Listbox?
    Thank you so much for your help and have a great day.
    cheers,
    Babak :o)

    Hi!
    I am sorry I can't help you with your problem :-(
    But I have got a question: You said you are using "DirectDraw Render for faster drawing (I use Direct X 9)..."
    I tried to find a source in the net how to do this because my app is also a little bit slow by drawing the videodata. Can give me a source, lib or sample code how I can do this too? I never found sth. like the DDRenderer :-(
    by the way: JMF rox
    regards
    kozen

  • Need Your Help with Loading SWF into another Flash Movie!

    Hello,
    I have created TWO Flash movies. They work just fine
    individually, but I get problem when I put one into another one!
    The main Flash is a Menu and the second one if a Photo Album.
    The Menu is series of animation (Moving Objects) which finally
    comes into rest and create the menu. The photo album is another SWF
    file which is called with in the first Flash Movie (The Menu). The
    SWF file is loaded as follow into the Main Flash.
    MovieClip.prototype.drawRect = function(x, y, w, h) {
    this.beginFill(0xFF0000, 100);
    this.moveTo(0, 0);
    this.lineTo(0+w, 0);
    this.lineTo(0+w, 0+h);
    this.lineTo(0, 0+h);
    this.lineTo(0, 0);
    this.endFill();
    this._x = x;
    this._y = y;
    this.createEmptyMovieClip("mc6", 6);
    mc6.lineStyle (3, 0x000000, 100);
    mc6.drawRect(-77, -17, 20, 20);
    mc6._xscale = 100;
    mc6._yscale = 100;
    loadMovie("photoAlbum.swf", mc6);
    Problem arises when I click on the Play Button of the
    photoAlbum.swf (Photo Album) since the execution of the play button
    causes the Flash starts once again from the beginning of the entire
    Flash Movie (Beginning of the animation creating the menu) and it
    simply jumps into the Firm One of my Flash Movie.
    Could you tell me how I can isulate what is in layer 6 (Where
    the photoAlbum is loaded to) from the rest of my Flash Movie?
    I hope I managed to explain my problem. I would like to take
    this opportunity to thank you in advance for your help.
    Cheers,
    Babak

    Hello Anya,
    I have realized the problem arises from the Wait Function
    which causes the Photo Album to pause for a period of time (Two
    Seconds) once a Photo is fully displayed (I have Fade in/out Photo
    Album). I realized everything works OK once I remove the function
    and rather left the Photos to be flipped without any pausing (This
    is an Auto-loading Album which simply Flips the photos!).
    Here is the Wait Function which is causing all the trouble.
    function wait()
    stop();
    var myInterval = setInterval(function ()
    play();
    clearInterval(myInterval);
    }, 2000);
    Thank you so much for your help.
    Cheers,
    Babak

  • I need your help, with table

    Hi experts,
    I have a problem with table in sapnetweaver, and want to ask all of you , that is : I want to set a column of a table with 3 rows, one is textview, one is editfield, and the last one is combobox, how can i do that.
    Thank you for your attention,
    looking forward to hearing from you soon.
    Chau.

    Hi,
    For NWDS 7.0 version,this feature is available.
    You can use difference cell editors in the table  column for different
    table rows.
    How to create this:
    Step1>in the outline create one table column.
    step2>Rightclick on table column select "Insert CellVarient".
    Step3>You will get a popup with 3 choice.Select TableStandardCell.
    and give some name.
    Step4>Rightclic on TableStandardCellVarient,then select InsertEditor.
    In this editor you can able to select one newelement(i.e textview/image/
    InputField.........etc)
    Like this you can insert multiple Cellvarients(1.Image,2.Ifld..etc) to the single Tablecolumn.
    Regards,
    Lavanya.G

  • Need Your Help with FORM Problem

    Hello,
    I have created a Form which sends out the informatin to a PHP
    file. The form works FINE on its own. But when I added the Form to
    my Main FLA file which Contains video and all sort of other stuff
    which I are NOT realed to my Form the I am getting problem. The
    problem is that the Form doesn't work any longer. It loads the php
    file but I have realised that there lots of information which are
    attached to the address which are not really rhe stuff that I would
    like to send to the php file.
    Can anyone tell what I am doing wrong and how I can fix this
    problem, please?
    Thank you in advance for your help.
    Babak

    Babak,
    You will want to use the sendandload function.
    http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Parts&file=00002336.html
    Live
    Docs sendAndLoad
    This will allow you to specify the variables you would like
    to send to your php file and load the variables coming back into a
    specific area aswell.

Maybe you are looking for

  • Those darn Scroll Bars!!

    Ive looked at and tried many different tuts for adding a scroll bar to a JTextArea in my JFrames but they never seem to work... can someone please write me a small sample code for it? Heres a skeleton code for you to use if you want to help me... imp

  • Apply Templates to Multiple Docs

    Does anyone how to apply a DWT to multiple html docs in one step? I tried recording a command, but that did not work. it will only let me apply it to one doc at a time. I have 60 docs that i need to update to look like the template. Any help would be

  • Outlook 2003 problem

    Hello, Just recently if I write an e-mail only a part of it will be sent, especially if I delete a part of it and rewrite it. Another time it actually sent what I decided to delete and not any of the new dialogue at all? As you can tell this could be

  • JDI: which SDA /DC contains the KM-Jars?

    Hi, I trying to use KM-functionality from a webdynpro, similar to this guide: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on using knowledge management functions in web dynpro - 26.htm Th

  • Allignment tool not available with the Student Version?

    Is the Allignment tool not available with the Student Version? It appears to be clickable yet no action- Is there a preference I'm missing?