Make App in XCode that opens Applescript Files

I feel this is a simple goal, but since I'm a total noob I have been having a hellish time getting this project off the ground, here's what I want to do:
Make a program with buttons that I can click that will perform functions that I've already defined using applescript.
In other words, in the window (of the app I want to make) there will be a button for each applescript, clicking on the button will perform a certain scripts function.
Every guide I have found for using Xcode and Interface Builder has been for version 2.x and earlier. This is particularly frustrating for IB because many of the palettes/functions are totally gone or moved. I would love some advice that directly addresses the program I am trying to build, but a guide or how/to or SOMEthing would be useful too. Thanks in advance for even reading this.

Hmmm, not sure where that other link came from, but referring to the AppleScriptObjC Release Notes, setting properties to missing value and creating handlers with a single trailing underscore in the name (and having only one parameter) will have them show up in *Interface Builder*. As an example, suppose you have the following in your AppDelegate.applescript file:
property myButton -- this will be an instance of your button
to doButtonStuff_(sender) -- this will do stuff when the button is pressed
display dialog sender's |title|() as text -- just show the name of the button
end doButtonStuff_
From IB (open your project's MainMenu.xib), drag a button into the window, and select the *Connections Inspector* for the AppDelegate.applescript - you should see your property and handler listed under the Outlets and *Received Actions* sections. To link the button to items in your script, drag a connection from these items to your button - when connected, an outlet will be linked to your myButton property (so you can use it with various button methods), and an action will be linked to your doButtonStuff handler (which will call the handler when the button is pressed).
From there, you can add and connect interface items as desired - your handlers can contain normal AppleScript statements to do whatever.

Similar Messages

  • How can I make an app with xcode that works like a news app? So that I can post articles on the app. Do I have to use a database or can I connect the app directly with my mac?

    How can I make an iphone app with xcode that worrks like a newspaper? So that I can post articles on the app while it is on appstore. Can I directly connect the app with my mac or do I have to connect it to a database?  Thanks

    Funny, I was thinking you'd want to use the prescribed deployment that Apple went to all the trouble to provide so you wouldn't trot down the garden path with some other implementation, only to find your app rejected with the admonition to use Newsstand after all...
    If you're all hot to ignore all that & DIY, why are you even asking...why not just go for it...

  • The Maverick Calendar App-Alert Option-to Open a File-stops working after a few days

    The Maverick Calendar App, Alert Option, to Open a File works for a few days, than stops. The Calendar alert still triggers, but the reference to launching the other file disappears. Has anyone found and solved this problem?
    This Calendar, Open File Option, worked fine without error in 10.8 and earlier, but I was only given the option to launch an Apple Script.

    Hi Laura,
    I opened a SR.
    Thanks,
    Mirko
    laurabuckley wrote:
    >
    > Hi Mirko
    >
    > I am aware of issues on the DVA hanging threads. I'm not sure if this
    > is what is happening in your environment. If you open a Service Request
    > with Novell Technical Support you will be able to get a newer version of
    > GroupWise 2014 that has DVA fixes in it. My suggestion is that you try
    > that first.
    >
    > Let us know how you proceed.
    >
    > Cheers,
    >
    >

  • Double clicking on a file launches the app but doesn't open the file anymore. Why?

    Double clicking on a file launches the app but doesn't open the file anymore. Why?

    I would post in the Illustrator forum here http://forums.adobe.com/community/illustrator or the Dreamweaver forum here http://forums.adobe.com/community/dreamweaver. One of these product forums will be able to help.

  • Spreadsheet app that opens Excel files?

    I should have asked this in my last post about word processors in OS X. If I'm just a casual user who rarely needs to open Excel files (e.g. friends email me some spreadsheet about who knows what), should I just plan on using NeoOffice (OpenOffice), or is there some other option out there if I don't want to buy MS Office? It seems that iWork doesn't even come with a spreadsheet app. However, even if it did, I'm wondering if there'd be another alternative sufficient for a casual user like myself.
      Mac OS X (10.4.6)  

    NeoOffice handles multiple sheets and has loaded my Excel files with no problems. I have not used NeoOffice extensively as I downloaded it to become familiar with what it can do, so I have not come up against its limitations yet. NeoOffice is a large program (338 mb on my external hard disk) which contains all the modules in one (rather than separate programs like Word, Excel and PowerPoint), so it takes a while to initially open but once open it switches between the modules with little delay.

  • Can anyone recommend an app that opens zip files?

    Can anyone recommend me an app that I can use to open zip files (mainly photos) and them store them accordingly in files appertaining to content.

    The Archive Browser 1.9.1

  • Apps that open .odt files and sync with dropbox?

    Does anyone know of any (preferably free) apps that sync with dropbox and can open/edit/save open office files?
    I currently have a free app that syncs with dropbox but has no formatting features, which I am finding frustrating.
    Thanks, Gemma.

    You can't sync files with Dropbox in an automated way. But you can use the Share button to send edited files to the Dropbox app on iPad/iPhone which accomplishes the same thing. (Other PDF reader apps offer more automated solutions.)

  • DVDSP3 Won't Make New Buttons, Won't Open Project Files

    HELP!!!!
    The button editor in my DVDSP 3.02 stopped working after it opens a new project file. I mean, when you go to a menu and then hold down the mouse button and drag, nothing happens. It will not create any new buttons. Even if you drag a button template over and use the pop-up submenu. It will not create any buttons.
    Worse is what happens when I open an existing project file. Then it stalls forever at the "Loading Menus" point in the "Loading Project" dialog. It doesn't crash, it just stalls there forever. However, if I click "cancel" - THEN the app crashes.
    But it won't make buttons in the new project files it can open, and it won't open any existing project files. Very confusing.
    Here's what I know and have done to this point...
    If I watch this whole process in the Activity Monitor, here's what I see. I find that two apps named "DSPX_AEncoderServer" and "DSPX_EncoderServer" get hung (and turn red) when the "Loading menus" point is reached in the document load. Sometimes DVDSP will say it's hung, too, but not always.
    However, I found that my DVDSP app still runs flawlessly if I boot from my "clone" backup drive, which is how I'm still able to get work done currently.
    Back on my normal boot drive, all of the other Apple Pro apps still run perfectly - FCP, Compressor, A-Pack, etc. But not DVDSP.
    OK, here's a clue, but I don't know what it means. Two months ago, I had the logic board replaced on my G4. All the pro apps made me re-register. Then this DVDSP problem appeared out of the blue. Nothing fixed it that I could find. What made it finally go away was the timely arrival of a new Security Update to the OS via "Software Update." Installing that made the problem with DVDSP go away, for good.
    Not doing hard drive maintenance, repairing privleges, fully optimizing OS, Disk Warrrior, Norton DiskDoctor - none of them worked. But that Security Update showing up, installing, and then doing the post-install optimize fixed the problem. That time. Or maybe it didn't? Because...
    Two weeks ago the FW ports on the "new" logic board blew, just like the original, so AppleCare gave me a third logic board.
    Same deal as before with all the pro apps wanting to re-register because they are seeing a different serial number in firmware.
    Also, just like before, I have this trouble with DVDSP. But I can't fix it this time.
    In the past three days (two of which were really one "large" day with no sleep period in between) here's what I have done in an attempt to fix this, without success.
    I dumped the receipts for the DVDSP v3 installs and upgrades, then I reinstalled the DVDSP components from my original disc, and then reinstalled the online 3.02 upgrade. No go.
    I did all of the above, except this time I found an Apple TechNote on deinstalling DVDSP v2. So using that as a guide I did my best to delete the app and all its supporting files, as well as the install receipts, before doing a fresh install of the app and the v3.02 upgrade. No go.
    I did a plethora of hard drive and system maintenance thinking that perhaps some files had been misplaced, a hard drive directory corrupted, a bundle bit here or there un-set, a few system libraries de-optimized, various font and system caches corrupted, as well as numerous log files too filled up with "essential" data to run correctly therefore in need of deletion.
    Along with anything else I could think of based on my 20+ years of supporting Macs in a production environment. Again, no go.
    So I deleted all the DVDSP files and receipts from my boot drive again. Then I dumped all the install receipts for OS 10.3.9 and ran the "combo" version installer for that OS upgrade. Next I dumped the receipts for the Security Updates and reinstalled those. Then I did drive maintenance, OS permission fixing and optimizing. Then reinstalled DVDSP and friends. Still no go.
    But my version of the app that is on my backup hard drive that I cloned right before taking the Mac to the shop for the 3rd logic board still runs just fine. I boot off that drive (connected via Firewire) and DVDSP will run fine.
    I'm confused.
    Now I'm not inclined to spend a lot more time on this since my DVDSP 4 upgrade is due for delivery any day now, and I'm sure that will work OK. Especially since I'm planning on moving to Tiger at that point, too.
    But in the meantime, it sure would be nice to know what happened to my "regular" copy of DVDSP.
    Can anyone figure this out, or at least give me some new ideas on now to troubleshoot this?
    Apple Support refuses to help me because I'm still using an "unsupported" version of DVDSP. Even though I'm still using it because my purchased upgrade is being delivered via "media mail" - the US Postal Service's version of the proverbial "Slow Boat."
    That was a difficult and frustrating conversation withthe Apple Support rep, too, let me tell you. I've been a fan, user, customer, supporter, and evangelist for Apple hardware and software since 1984. But when that voice on the other end of the phone essentially told me that...
    a) if I was not using the latest and greatest version of the software, AND...
    b) if I was not willing to spend several hundred dollars each year on support fees...
    ...then I was basically on my own and they would not help me. Worse, they didn't care that I was an old and loyal customer, or that I was even a stockholder in the company. The support system essentially told me to get stuffed. Yee-e-e-ow!!!!
    I was especially mad about this because I have this nagging suspicion that this whole problem I'm having with DVDSP is somehow related to some kind of copy protection scheme that Apple has going on but doesn't talk about.
    I mean why did I need to re-enter the serial numbers for all my pro apps when I changed logic boards? Is my problem being caused by some Pro App component that knows enough to stop working when it thinks it's been bootlegged, but doesn't know enough to trigger a re-registration of itself.
    At this point, that idea is beginning to sound more and more plausible as the cause of my trouble.
    Anyway, this problem is seriously hurting my workflow. I'm out of ideas and I need some guidance from the collected wisdom of the forum to solve this problem.
    Thanks in advance.

    I didn't see anywhere that you had downloaded and
    installed the latest proApplication Support file. If
    you haven't, you should do this next:
    http://www.apple.com/support/downloads/proapplications
    upport31macosx1039.html
    Hal:
    I had reinstalled that ProApps Support version, but I hadn't done it since I deleted all the app files and such, then done a complete reinstall from the DVD.
    So I just downloaded it afresh, and then installed it. Then I restarted, and then repaired permissions with Disk Utility.
    Still no go.
    I'm bamboozled. I thought I knew something about this stuff, but I guess it's good to stay humble.
    However, my 5.1 studio upgrade just arrived in today's mail. I think I'm going to take a chance. I'm between projects right now. So I'm going to upgrade my OS to Tiger>then 10.4.6 upd. Then I'll take a shot at installing the new FCP Studio upgrade and see what happens.
    Any comments or advice? Otherwise, wish me luck. I'll let you know how this works out with a post here.
    Sure wish I could figure out what's going on with my DVDSP v3, though. I really HATE to leave unresolved problems hanging out there. Seems like they always come back to bite you again if you don't deal with them.
    Thanks for the help.

  • Preview.app new bug : stops opening new files

    Starting a couple weeks ago, perhaps with my update to iLife 09 or perhaps related to a recent system update, Preview.app has a new bug for me.
    If I open a few files (jpg, pdf, etc) with Preview.app, it will mysteriously stop opening new files. Double clicking the files in Finder, using Preview->Menu->File->Open, or any "open with..." functionality causes Preview to get the focus (come forward) but the file does not open.
    I am not able to make it happen consistently with any set of files, but it is not any single file causing the problem. I've had this happen every day for the last couple weeks and it is now moved from annoyance to extreme annoyance.
    If I close Preview.app and restart it, the same file that would not open will open fine. I have not been able to narrow this down, but I see this in Console:
    4/17/09 2:12:29 PM Fri Apr 17 Preview[11193] * -[NSCFArray insertObject:atIndex:]: attempt to insert nil
    As I said, the main thing I've changed recently is installing iLife 09. I'll continue to try to create a replicatable test set, but so far it seems more mercurial than that
    Anyone else seeing this?

    Well, let me describe it a different way. I do not believe there is any way permissions for the files I'm opening could have anything to do with this.
    1) I open a jpg with preview, leave preview.app running
    2) I go do something else
    3) I open a PDF in firefox, it opens preview with the pdf
    4) I go do something else
    5) I open a jpeg with preview
    6) I try to open another jpeg with preview and it does not open.
    7) No file of any sort, even the same file I opened in step 1 or 5 will now open in Preview. Preview.app is now completely unable to open new files.
    Generally, I leave Preview.app running. This bug makes that completely non-functional. It also means I can't use preview.app to compare images side by side because it so often won't open the images after a dozen or so files get opened during its process-life.
    Message was edited by: blinc

  • Great Video Editor That opens m4v files and has WMM effects. not imovie

    So like the title says, i need a good video editor that opens up m4v files and has similar effects to windows movie maker. I accidentely removed iMovie from my computer and now i have nothing. Please don't suggest some really expense/advanced editors. Thanks!

    Why don't you just use your install disk(s) and reinstall iMovie?

  • Opening photoshop from double click on file opens the app but doesn't open the file.

    This is a new behaviour... how can we solve it? Its very annoying!

    Thanks!
    Steps to reproduce:
    Having the photoshop closed...
    1 - Double click a psd file on the desktop (or any other place)
    2 - Photoshop loads until it gets to the normal window
    3 - The file wasn't opened
    4 - Go back to the desktop and double click the file
    5 - Photoshop (that is at this time already open), opens the file and displays it on screen
    Shouldn't it be opening the file after loading photoshop?
    details on my macbook and photoshop versions attached

  • How do I change the default program that opens .acsm files?

    I am borrowing library eBooks to read on my Sony Reader.  I want to ensure that Adobe Digital Editions is the default program to open .acsm files, but am not sure how to do that.  Thanks for the help!

    Right (control) click on the .acsm file > select Open With > then select Adobe Digital Editions.
    Likewise you can select all of files in a folder with Edit > Select All > then Get Info and set them all to Open with: Adobe Digital Editions or whatever.
    Dennis

  • Program that opens .rar files?

    Hello, I was wondering if anyone knows of any free programs for mac that allows me to open .rar files?
    Thank You

    please remember:
    Why reward points?
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • What Apple app is required to open .pdf files arriving by e-mail?

    Attachments to e-mails are frequently in .pdf format. I'm unable to open them in Pages, iPhoto or Keynote. Help would be appreciated.

    Double clicking the file icon should automatically launch the default application (Preview) and open the file. If you have Adobe reader installed, PDF files created with Adobe Acrobat or Adobe Distiller may default to Reader as the application to open them. Either way, it takes only a double-click on the icon to open the file.
    And... Single page PDFs will usually be displayed in Mail itself (as well as in other email clients).
    Regards,
    Barry

  • I lost my apps and can't open my files

    OMG I'm driving myself crazy, someone please help me
    imac, Processor 3.2 GHZ Intel Core i3, Memomry 16 GB 1333 MHz DDR3
    My father gave his imac for christmas which was very exciting and joyful
    I decided to change the username of the administrator account by going to System Preferences> Users and Groups> unlock account> right click on Administrator account> Advanced options. There I changed the name of the account and put my name instead of my fathers. The computer told me to restart it to make the change and so I did. But then I realized that all my apps we were. Microsoft office all gone, files in desktop gone, all other special app for fotos and videos editing also disappeared. Its like the imac is brand new and has only the main apps the computer comes with. It also tells me I don't have permission to access certain files. I've tried repairing the disk through Disk Utilities... didn't work. I called apple support and they don't seem to know exactly whats the problem. I've tried signing in through guess account.... nothing. I can't even right click the administrator account to try to change back the name I had and recover my information.
    Please someone help me.. Im driving myself crazy here.

    Do you have Restrictions enabled on your iPhone at Settings > General > Restrictions?
    If so, is Installing Apps enabled as a Restriction on your iPhone?

Maybe you are looking for

  • Mouse pointer text file

    Hi , I need to programatically open the Note pad and move the mouse pointer to the specified location . - I was able to open the Note pad programatically ,But i am unable to move the mouse pointer to the specified location , Please tell me how to do

  • Note 816352: Rendering Differences between DESIGN 2002 and 2003

    Note 816352 should be released within next day or two. With design 2002, in a number of places it was possible to use colors that were reflected directly in the rendering. With design 2003, the raw use of colours are not supported any more. For a num

  • Has anyone got a clue how to remove Iso5 or am I stuck with it once downloaded?

    I have recently purchased a Iphone 4. I had the Iso4 software installed put have updated to Iso5. DISASTER!!!! The menus are sluggish, the app games run slower than a comador 64. Angry Birds in particular its bity and slow. The screen freezes and bun

  • If I become an iOS Developer do I get the OS X Developer Preview as well?

    I went to the Apple Store and was inquiring about becoming a developer so as to gain access to Yosemite before its public release and was told by a specialist that if I spent $99 and became an iOS developer I could also gain access to the Beta of Yos

  • Why does it open new finder windows?

    suddenly, without my doing anything, click on foldes in the finder ends up opening new windows, so that I have a million windows open by the time I get to the folder I need. i looked in the prefernces and I don't have the "open folders in new window"