Xcode: Create An Application Written in AppleScript

Hi.
I've got what's probably a stupid and easy question.
I have some AppleScript programs that I'd like to create custom interfaces for.
I've read about AppleScript Studio.
I've read that to create an Xcode project written in AppleScript, you can just select 'AppleScript Application' from the New Project window.
However, the New Project window that I get looks entirely different (newer) and the closest thing that I can find is 'Cocoa-AppleScript application', which doesn't work.
So, is there a way for me to use Interface Builder and Xcode with my AppleScript programs, short of learning Objective-C and converting everything?
I'm using 10.6.2, Xcode & Interface Builder 3.2.1.
Thanks in advance!

One possible explanation for the lack of Apple provided documentation is that AppleScriptObjC revolves around knowing, or at least, understanding some Objective-C. To write application in AppleScriptObjC, you must know how to read and understand existing Objective-C code and the developer documentation for Objective-C.
There is a learning curve, but there was also a learning curve to AppleScript Studio and it was a tremendous pain in the rear to use. The more you use AppleScriptObjC, the more you will begin to understand Objective-C and the easier both will become.
It is very exciting the direction Apple has taken AppleScript with AppleScriptObjC. It may be difficult to see this now but once you are comfortable using it, you will see its power, flexibility and ease of use.
*Videos on YouTube*
http://www.youtube.com/user/AllanCraigTutorials?feature=mhw4
*Apple's Release Notes.*
http://developer.apple.com/mac/library/releasenotes/ScriptingAutomation/RN-Apple ScriptObjC/index.html
*Resources with AppleScriptObjC examples.*
http://www.scriptingmatters.com/ASObjC
http://www.tidbits.com/matt/
http://allancraig.net/
http://macscripter.net/
*Resources for Learning Objective-C*
http://allancraig.net/index.php?option=com_content&view=article&id=92:sources-fo r-learning-objective-c&catid=39:objective-c&Itemid=86

Similar Messages

  • Create an Xcode / Interface Builder Application Written In AppleScript

    Hi.
    I've got what's probably a stupid and easy question.
    I have some AppleScript programs that I'd like to create custom interfaces for.
    I've read about AppleScript Studio.
    I've read that to create an Xcode project written in AppleScript, you can just select 'AppleScript Application' from the New Project window.
    However, the New Project window that I get looks entirely different (newer) and the closest thing that I can find is 'Cocoa-AppleScript application', which doesn't work.
    So, is there a way for me to use Interface Builder and Xcode with my AppleScript programs, short of learning Objective-C and converting everything?
    I'm using 10.6.2, Xcode & Interface Builder 3.2.1.
    Thanks in advance!

    You don't really need to know Objective-C, although it does help a bit with understanding the examples and code snippets in the Cocoa documentation. See my reply to your other topic.

  • I created an email script in AppleScript, but it is not working.(Read below as well)

    I created an email script in AppleScript.
    Here is the code:
    set recipentNamePrompt to display dialog "What is the name of the recipient?" default answer "Cookie Monster"
    set recipientAddressPrompt to display dialog "What is the email of the recipient?" default answer "[email protected]"
    set subjectPrompt to display dialog "What is the subject of the email?" default answer "Change Cookie Recipe"
    set contentPrompt to display dialog "What would you like to put in your message?" default answer "Cookie Monster want MORE chocolate chips in cookies!"
    set recipientName to recipentNamePrompt
    set recipientAddress to recipientAddressPrompt
    set theSubject to subjectPrompt
    set theContent to contentPrompt
    --Mail Tell Block
    tell application "Mail"
      --Create the message
              set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true}
      --Set a recipient
              tell theMessage
      make new to recipient with properties {name:recipientName, address:recipientAddress}
      --Send the Message
      send
              end tell
    end tell
    But when I type in my info, the created message is written in Chinese. Someone please help me!

    The result of a display dialog is a record that contains the properties button returned, text returned (if default answer is used), and gave up (if giving up after is used).  Since you are passing the entire record to the Mail fields, it looks like it is getting interpreted as some Unicode text.  The solution is to get rid of your intermediate prompt variables and just get the desired property (the text returned), for example:
    set recipientName to text returned of (display dialog "What is the name of the recipient?" default answer "Cookie Monster")
    set recipientAddress to text returned of (display dialog "What is the email of the recipient?" default answer "[email protected]")
    set theSubject to text returned of (display dialog "What is the subject of the email?" default answer "Change Cookie Recipe")
    set theContent to text returned of (display dialog "What would you like to put in your message?" default answer "Cookie Monster want MORE chocolate chips in cookies!")

  • Impossible to upload Script and to create new application on UCCX 5.0.2

    Hi All,
    I'm trying to upload a new script on the UCCX server version 5.0.2 but I can not. When I click on the "Upload" button, I get a blank page where iit is written there is no connection. I can connect on the appadmin page. When I want to update or to create an application I have the following error:
    Error while handling the input request.
    com.cisco.app.ApplicationException: can not acquire ClusterMutex
    com.cisco.config.ConfigException: Get config record - error: catch cisco.config.ConfigException UnmarshalException
    javax.xml.bind.UnmarshalException: Content is not allowed in prolog. - with linked exception: [org.xml.sax.SAXParseException: Content is not allowed in prolog.]
    Can someone help me?
    Thanks in advance.

    Along these lines, you may want to restart the CRS Administration service through System > Control Center.
    There were a few bugs about page loading errors in various releases of 5.0. I took a glance at the bug toolkit and didn't see an exact match as you have described it though.

  • Could not create ~/Library/Application Support/Adobe/CoreSync

    On my MacBook Pro, I'm using Chrome as my web browser, and I wanted to try Adobe Photoshop CC with a free trail, but first I have to I download Creative Cloud. And I did, successfully, but when I go to install a free trail of Photoshop CC, I cannot and this comes up...
    So I did as it says and uninstalled Creative Cloud and re-downloaded it, and I still get the same message and this message too...
    So I Google searched this message and a solution for it, and I found some forums on the Adobe discussion/question page, and found that the solution was to:
    I did this process, and everything was going smooth, except for I have no "CoreSync" folder...the only folders that come up after I search in my Finder "Library/Application Support/Adobe" are Lightroom and OOBEE.
    NOTE: I'm not sure that OOBEE is the exact name, I tried following other forum steps and one of them was to change the name to "OOBEE.OLD", but this didn't work so I just changed it back to what I think is the original name.
    Could I please have some help...I've been at this for along time and it's really ticking me off...all I want to do is download the free trail of Photoshop CC. I would really appreciate some help.
    Thanks,
    Nick

    I had exactly the same issue which is preventing Adobe Creative Cloud to download. The message "could not create..." is appearing and in the Apps area in Creative Cloud is written "Download Error" and I should reinstall it. I tried it several times with no success. Also the permissions for the folders are allright (created root and checked permissions like described in above link).
    I now found this
    install error on Mac "could not create ~/library/application support/adobe/coresync"
    After creating another admin user I could install it with that one. Hope this helps.

  • Help desk application written in coldfusion

    Hello
    I was assigned to re-create a help desk application using
    coldfusion.
    I am so far clueless from the business requirements
    Know the IT dept is expanding to more than one geographic
    location.
    Is there a sample application written in coldfusion. Maybe I
    can get an idea on functionalities and have some basis. BOOKS on
    business / logical flow? Sample software written in CF?
    Thanks

    with some modification to the following wonderful project by
    Raymond Camden,
    http://lighthousepro.riaforge.org/
    ,you can have an idea on how to start. I am designing one right now
    and it will take me a while before i finish since I could not use
    the one by Ray (it requires CF7 and I have only 6.1). I will
    appreciate it if you find one on the web and share it with me.
    Mamdoh

  • Create iCal-iCloud calendar with applescript

    I am trying trying to create a new calendar with Applescript in my iCloud account.  I've tried using the following:
    tell application "iCal"
      make new calendar with properties {title:item i of NewCalendars}
                        end tell
    but it creates it On My Mac.  I've tried searching for a way to do this but can't find anything.

    That seems to be possible with GUI Scripting:
    set theTitle to "New calendar"
    tell application "Calendar" to activate
    tell application "System Events" to tell process "Calendar"
        tell menu bar item "File" of menu bar 1
            click menu item "iCloud" of menu 1 of menu item "New Calendar " of menu 1
            -- (don't remove the space at the end of "New Calendar ")
        end tell
        keystroke theTitle & return
    end tell
    Before running the script, don't forget to enable access for assistive devices in the Accessibility System Preference pane.

  • Is there an adobe -non coding needed- program for creating iPhone applications?

    hi there,
    i've been asking around for a program that i can create iphone applications with, and so far landed on xCode from apple,
    i haven't tried it yet, but as far as i heard it needs coding, and as a designer i'm not fimiliar with coding languages...
    need a simple, user friendly program to deal with, similar to adobe muse when it comes to designing websites.
    i would much more prefer deal with an adobe program to create applications than an apple's...
    is there one?

    i know one, a coder/programmer, but thought maybe there is program that will allow me to do the whole thing by myself,
    specially when i found out about adobe muse, anyway, thanks a lot for the info.
    wafa'a j.

  • When I create a new polygon with applescript in in design cs4, I want to make a drop shadow

    when I create a new polygon with applescript in in design cs4, I want to make a drop shadow
    Is it possible?
    I am working with MAC OS 10.6.7 and CS4
    Can somebody help me?

    Adding a drop shadow should work fine regardless of shape… As Im a big fan of using styles everywhere I can…
    tell application "Adobe InDesign CS5"
    activate
    tell the active document
    set GotNoStyle to make new object style
    set properties of drop shadow settings of fill transparency settings of GotNoStyle to ¬
    {mode:drop, distance:3, angle:135, spread:0, blend mode:multiply, opacity:50, honor other effects:true, x offset:3, y offset:3, knocked out:true, use global light:false}
    set SomeFill to the last swatch
    tell the first page
    make new rectangle with properties ¬
    {fill color:SomeFill, geometric bounds:{10, 10, 30, 30}}
    apply object style (the result) using GotNoStyle without clearing overrides
    make new oval with properties ¬
    {fill color:SomeFill, geometric bounds:{10, 40, 30, 70}}
    apply object style (the result) using GotNoStyle without clearing overrides
    end tell
    end tell
    end tell
    You can then edit the object style to make global changes… Sorry my values were for my euro metric head…

  • Partner Application written in other language than PL/SQL and Java

    I have an application written in another language than PL/SQL or Java. I want to integrate this application as an Partner apps where I use the same user repository as Portal.
    Can I integrate the application by calling a stored PL/SQL-procedure based on the PLSQL SSO APIs examples that authenticates the user based on the username/password in portal and redirects the user to the application ?
    Are there any examples / references where this has been done ?
    Jens

    Check out the PDK referance for URL-Services, which allow you to integrate with any web based service/content.
    http://portalstudio.oracle.com/servlet/page?_pageid=350&_dad=ops&_schema=OPSTUDIO

  • How to create an application-specific policy file?

    Hi Everybody:
    I'm a .NET developer with C #. I have a few applications currently running on my computer using the ODP 10.1
    Two weeks ago I installed on my computer the ODP 10.2 Release & now my previous applications have stopped working: when I try to make the connection to the database gives me this exception:
    OraOLEDB (0x80004005)
    ORA-12154: TNS: could not resolve the connect identifier specified
    In FAQ section for ODP.NET I found the next:
    Q: I have two .NET applications on the same machine running two different versions of ODP.NET. How do I ensure both these applications use the correct ODP.NET version?
    A: Beginning with ODP.NET 10.1.0.3, the Oracle installer will register the following publisher policy DLLs in the Global Assembly Cache (GAC) that redirect 9.2, 10.1 and 10.2 ODP.NET applications to use the last installed version of ODP.NET: Policy.9.2.Oracle.DataAccess.dll and Policy.10.1.Oracle.DataAccess.dll.
    ODP.NET 9.2 includes just the first policy DLL above. These policy files ensure that all your ODP.NET applications use the most recently installed version of ODP.NET.
    You may undo the redirection manually. Policy DLLs can be de-installed through gacutil.exe using the /u option. Another approach is to navigate to the GAC directory (i.e. C:\WINNT\assembly) through the Windows Explorer and delete the policy folders. That will eliminate any policy enforcement for all your ODP.NET applications.
    If you have applications on the same machine using different ODP.NET versions, you should create an application-specific policy file.
    I'm trying to do that, but I don't know what is an application-specific policy file. Someone can give me an example of How can I create and application-specific policy file???
    Regards

    Hi,
    Binding redirection is a ".net thing" as opposed to a "odp.net thing", see if this helps:
    http://msdn.microsoft.com/en-us/library/7wd6ex19(VS.71).aspx
    Hope it helps,
    Greg

  • Creating partner application in Oracle

    $ORACLE_HOME/sso/bin/ssoreg.sh
    -oracle_home_path <oracle_home_path>
    -config_sdk_papp TRUE -site_name SSO_APEX
    -home_url http://hal-00-dbs-08.hal.net:7777/pls/apex
    -success_url http://hal-00-dbs-08.hal.net:7777/pls/apex/wwv_flow_custom_auth_sso.pro
    cess_success
    -logout_url http://hal-00-dbs-08.hal.net:7777/pls/apex
    -u cn=orcladmin
    -papp_schema <apex schema>
    -cancel_url http://hal-00-dbs-08.hal.net:7777/pls/apex
    -papp_schema <apex schema> what goes here?

    Please tell us your first name and update your forum profile with it to assist us. Thanks.
    Where did you get that script and what are you trying to do, exactly (generally, I got that your aim is "creating partner application in Oracle").
    Scott

  • Creating partner application in Oracle Portal

    $ORACLE_HOME/sso/bin/ssoreg.sh
    -oracle_home_path <oracle_home_path>
    -config_sdk_papp TRUE -site_name SSO_APEX
    -home_url http://hal-00-dbs-08.hal.net:7777/pls/apex
    -success_url http://hal-00-dbs-08.hal.net:7777/pls/apex/wwv_flow_custom_auth_sso.pro
    cess_success
    -logout_url http://hal-00-dbs-08.hal.net:7777/pls/apex
    -u cn=orcladmin
    -papp_schema <apex schema>
    -cancel_url http://hal-00-dbs-08.hal.net:7777/pls/apex
    -papp_schema <apex schema> what goes here?

    Please tell us your first name and update your forum profile with it to assist us. Thanks.
    Where did you get that script and what are you trying to do, exactly (generally, I got that your aim is "creating partner application in Oracle").
    Scott

  • Create J2EE Application in Release 6.20

    Hi All,
    I'm quiet new to SAP WAS.
    I read in the documentation that JAVA IDE (SAP NETWEAVER DEVELOPER STUDIO) is added start on Release 6.30 (Please, correct me if I'am wrong).
    If it so, how can I create J2EE application in Release 6.20. A brief explanation will be highly appreciated.
    Thanks,
    Edward (Indonesia).

    Hi Kalle,
    Thx, I have got the CD brom the Basis guy, and sucessfully installed it on my PC.
    But when I try to execute Stand Alone Server, this error occured:
    Loading core services:
      Starting core service monitor ... done.
      Starting core service p4 ... done.
      Starting core service log ... done.
      Starting core service dbms ... done.
      Starting core service security ... done.
    System Exception * Fail to start Naming. Exception is: java.security.AccessContr
    olException: access denied (com.inqmy.lib.security.DomainsEnumerationPermission
    ProtectionDomainEnumeration)
    java.security.AccessControlException: access denied (com.inqmy.lib.security.Doma
    insEnumerationPermission ProtectionDomainEnumeration)
            at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:269)
            at java.security.AccessController.checkPermission(AccessController.java:
    401)
            at com.inqmy.core.policy.PolicyManager.getProtectionDomainStack(PolicyMa
    nager.java:311)
            at com.inqmy.core.service.context.container.security.DefaultProtectionDo
    mainContext.getProtectionDomainStack(DefaultProtectionDomainContext.java:99)
            at com.inqmy.services.security.domains.ProtectionDomainManagerImpl.getPr
    otectionDomainStack(ProtectionDomainManagerImpl.java:96)
            at com.inqmy.services.jndi.InitialContextFactoryImpl.getInitialContext(I
    nitialContextFactoryImpl.java:72)
            at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    62)
            at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
            at javax.naming.InitialContext.init(InitialContext.java:219)
            at javax.naming.InitialContext.<init>(InitialContext.java:175)
            at com.inqmy.services.jndi.JNDIFrame.bindReferences(JNDIFrame.java:278)
            at com.inqmy.services.jndi.JNDIFrame.start(JNDIFrame.java:176)
            at com.inqmy.core.service.application.ApplicationServiceRunner.startFram
    e(ApplicationServiceRunner.java:55)
            at com.inqmy.core.service.container.ServiceRunner.run(ServiceRunner.java
    :126)
            at com.inqmy.core.thread.impl2.SingleThread.run(SingleThread.java:118)
      Starting core service naming ... done.
    Please Help.
    Warm regard,
    Edward.

  • How do I create "Oracle Application Express Adminstrator" in APEX 3.2.1?

    Hello,
    Quite the newbie so I appreciate any assistance with this.
    How do create "Oracle Application Express Adminstrator" in APEX 3.2.1? I am not talking about a workspace adminstrator but an Entire APEX instance administrator or "superuser"?
    I log into APEX_ADMIN as ADMIN and understand how to create a new user. But how do I grant the new user DBA or "super user" privlidges? It was easy to do when I first installed XE, I would just "check" the "DBA" when I created the user. But when I upgraded to APEX 3.2.1 the function does not seem to be there?
    Thank you for any help you can provide!

    Hi,
    I think you can not grant DBA role from Apex anymore.
    You need connect to database e.g. with SYS user and grant that role.
    http://www.oracle.com/technology/products/database/application_express/html/3.2_and_xe.html
    Br, Jari

Maybe you are looking for

  • How to optimize macbook pro for video editing and 3d animation

    Hello Everybody - I've had a macbook pro for about 5 years now. It works great, havn't had any issues with it yet, but I've started doing more video editing and 3D animation work on it with FCP7 and Blender (usually using photoshop at the same time).

  • Table Input field validation

    Hi Experts I have an OIF Application in which I have an Input enabled table and it is mandatory to enter the date range fields. When the user clicks 'SAVE', I have to validate if the start and end dates are entered in each record, and give an error m

  • Satellite L350D - WLAN not working after recovery disk

    Hello there I just got a L350D. I ran the Recovery Disk tool, without any other programm running. It was on a good way of finishing the second disk and than: BAM! blue screen. Since the start up, my LAN and WLAN is not working. It always says "WLAN 2

  • Fastest? Relocate Masters or Finder move with Locate referenced files

    I have maxed out the 2 x 1TB drives in my MP dedicated to referenced masters, and I'm about to consolidate them onto a new 2 x 2TB drive setup. My question is which is the fastest solution for moving 1.5 TB of images on my current setup onto one of t

  • Illustrator CS5 Doesn't Update Preview in .ai files

    I have a very simple .ai file created in CS3. I turned a layer off in CS5 and saved the file. The layer still shows in the preview image in the finder, in the application I'm using to import the graphic, and on output. Snow Leopard 10.6.7 Another Bug