Building a stand-alone AppleScript Studio application

I’m taking a crack at building my first stand-alone application with AppleScript Studio. After many attempts to locate the needed “build” information in the various documentation resources I’m still pretty much poking around in the dark ...
My application runs fine in the Xcode IDE. No problems. The application that Xcode saves in the project’s Debug folder runs too, (well, on the computer I developed it on) even if I move it out of its folder ...
However, the app. doesn’t run on other macs. When double-clicked and it sorta fizzles without ever opening — wondering if the debug version relies on some resources within the project. I've installed it on a PowerBook and iBook, both running Mac OS 10.4
I tried Build/Release. This also produced an application (in the Build/Release folder) which when failing to launch and causes the OS to burp, “You cannot open the application “My First App” because it may be damaged or incomplete.” This app will not run on my development computer or other laptops (PowerBook and iBook.)
Build/Release also invoked three Xcode compiler error messages that seem to indicate that I need to change the NIB settings:
/usr/bin/ld: warning /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/Cocoa.framework/Coco a cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/usr/bin/ld: warning /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/AppleScriptKit.frame work/AppleScriptKit cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/usr/bin/ld: warning fat file: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSystem.dylib does not contain an architecture that matches the specified -arch flag: i386 (file ignored)
Also got this warning(?):
/usr/bin/ld: Undefined symbols:
__keymgr_dwarf2_registersections
_cthread_initroutine
_atexit
_errno
_exit
mach_initroutine
_ASKInitialize
_NSApplicationMain
collect2: ld returned 1 exit status
Also tried Clean All. Same result.
I'm sure there's a simple step ... which I will remember well, 'cause I'm learning it the hard way.
John

However, the app. doesn’t run on other macs. When
double-clicked and it sorta fizzles without ever
opening — wondering if the debug version relies on
some resources within the project. I've installed it
on a PowerBook and iBook, both running Mac OS 10.4
You're right. You can't move a debug version of the app to another computer unless you copy the entire project folder. The debug version of the app requires access to other by-products of the build process in order to run.
Build/Release also invoked three Xcode compiler error
messages that seem to indicate that I need to change
the NIB settings:
The following errors are not related to your NIB file. They indicate you're trying to link against the 10.3.9 frameworks on an intel CPU. The 10.3.9 frameworks are PPC only.
/usr/bin/ld: warning
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Framew
orks/Cocoa.framework/Cocoa cputype (18, architecture
ppc) does not match cputype (7) for specified -arch
flag: i386 (file not loaded)
/usr/bin/ld: warning
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Framew
orks/AppleScriptKit.framework/AppleScriptKit cputype
(18, architecture ppc) does not match cputype (7) for
specified -arch flag: i386 (file not loaded)
/usr/bin/ld: warning fat file:
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSyst
em.dylib does not contain an architecture that
matches the specified -arch flag: i386 (file
ignored)
[snip]
Take a look at the suggestions I made in this thread to make sure your project is set up to build a universal binary and to ensure that you're linking against the 10.4 universal frameworks.
Steve

Similar Messages

  • Problems building a stand alone application with LV 8.6.1.

    I'm having problems building  a stand alone application with LV8.6.1. I'm using a USB- 6008 DAQ and USB-6501 Digital device in the application. I already have an simple executable on the machine so the Run time Engine is already installed.  For the USB DAQ device, I assume I need to include the DAQmx8.8 as one of the installers. When I attempt to build the application, I'm prompted for several disk, one being a distribuition disk 1. I have the installation disk for the developer package. I did not  see a distribuiton disk as one of the installation disks. When I insert disk 1 I get an error that another application is trying to run. Could someone tell me which installers I need to include and where do I find the "distributor" disk.
    Thank you,

    are you building installer for the first time on this PC?...It usually asks for the drivers CDs and some toolkits if required.
    you just need to use drivers CDs (comes with LabVIEW) from which you installed on this PC. If you have ever upgraded drivers, then you have to use the latest CDs only.......
    another issue may be ...when u insert the driver disk, it has autorun, it will launch drivers installation wizard....close that and then try to build distribution......... 
    Message Edited by Anil Reddy on 09-25-2009 01:22 PM
    Anil Punnam
    CLD
    LV 2012, TestStand 4.2..........

  • Scripting AppleScript Studio Applications

    Is there a way to create commands in an AppleScript Studio application that could be called by an AppleScript? Ideally, I want to be able to use the command in an AppleScript and have it execute a handler in my Studio Application.
    Thanks,
    Carl

    Won't be a problem with AppleScriptObjC

  • Hi, I need a stand alone suite of applications, where does one find an early version? Unless??

    Hi, I need a stand alone suite of applications, CS or later, preferably later, but one that works well with either a ppc mac or an intel core2duo mac. Does anyone have any suggestions as to where the best place is to purchase an older version that will work? This is unless Adobe has allowed and defined what a year of use is, in such a way that someone who's restricted in the amount of time to use and learn the software, can purchase a years worth of use and updates and have 5yrs to use a defined year's worth of user time and all updates in that year? And once the block of time is used be able to purchase additional blocks of time. It would definitely make a sale with me if Adobe "offered" this, as I have too many responsibility restrictions to be able to learn for an extended time period in one sitting, but I do have a great desire to learn and use this software. If Adobe doesn't offer this, I hope they will in the future.
    Any help would be "Greatly" Appreciated.
    Thank You,
    Randall

    Thank you, It figures that that would be the case. Question: Where would the best place be to look for this, and what should I be aware of so as to make sure it is a working copy? I figure it won't be supported being it is old and from another party, but I do want something that "works", and something I can also get the training manuals/dvds for. I wouldn't mind the subscription option if Adobe would package a minimum amount of hours and updates that one could use in a certain length of time, say 3-5 yrs, for those who are lite users who haven't the time to totally dedicate themselves to the use and learning of the software due to their plate being full already. If one used up this block of time within a year, then the normal subscription rules would apply with unlimited use within that subscription year.
    Again Thanks for your reply, it is most appreciated.
    Randall

  • Localize the name of AppleScript Studio application

    Hi,
    How to localize the name of an AppleScript Studio application (Xcode 2.4.1) ?
    I have found the solution in the developer doc, but nothing...
    - I have added CFBundleName in every InfoPlist.strings file (with and without the CFBundleName property in the Info.plist file)
    - I have added CFBundleExecutable in every InfoPlist.strings file (with and without the CFBundleExecutable property in the Info.plist file)
    - I have tried to make localizable the Info.plist file, modifying the CFBundleName and CFBundleExecutable property of every localization
    Of course, I have run "Clean All" between each operation...
    Thanks by advance, CU

    Solution...
    In Info.plist file:
    - The CFBundleName property must have a unique name
    - Add the LSHasLocalizedDisplayName key with string "YES"
    In every InfoPlist.strings file:
    - Add a CFBundleDisplayName property with localized name
    - Add a CFBundleName property with localized name (for the application menu)

  • How to include .xml file while building a stand alone applicatio​n .exe file from a Labview program

    HI,
    I have a labview program which loads default values of all the variables from a .xml file when executed.  I am trying to build a standalone '.exe application'  using
    (Tools Menu --> Build Application from VI) , however I am not sure where to include this .xml file in the process?  I really appreciate if some one could let me know.
    Thanks
    Vish

    As GerdW said, it is preferable (and better practice) to use the project explorer. My guess, you didn't configure the build correctly (and probably used the default settings).
    First, you have to specify your xml file as Always included is the source file tab
    Now look at how the build folders are built:
    The .ini file (xml in your case) is in the data folder. So in the build the relative position of the xml file is not the same as in the development environment. You have to be aware of this difference and use a diiferent relative path for the exe. You can do this using a conditional disable symbol in the project and then use the conditional disable structure in your VI.
    Here in the deploy case the exe will look for the file in the data folder and in the development environment it will look in a folder name Files.
    Ben64

  • Stand-alone application generates error with function 'Ramp Pattern' (bug in application builder?)

    Hello,
    in my program a main.vi links to a sub-VI via 'open VI reference' and 'invoke node'. In this sub-VI the function 'Ramp Pattern' is used. The program itself runs normally, but if I build a stand-alone application using application builder I get an error message 'error 1003 occurred ..'. I believe this error is directly related to the build specifications which are as follows: the main.vi is referenced in a main build specification, the sub-VI in its own specification where the target is a LLB.
    I appended an example-program that exhibits the error (when executing 'Application.exe' and pressing 'calculate ramp'). The error does not occur when disabling the 'ramp pattern' function and rebuilding the application.
    I would rate this to be a bug in the application builder and would appreciate any help on how to solve this problem. However, due to the structure of the whole program the sub-VI has to remain in its own LLB.
    Attachments:
    RampPattern.zip ‏198 KB

    There can be reasons why a VI might appear broken when loaded from an executable. For example, if you have different versions of the same VI or enum that differ in such a way as to break the calling VI, that can cause a broken arrow when loaded from the executable. If you have DLLs being called and the runtime engine can't find the DLL, that can cause a broken arrow that you might not see otherwise. Finally, there is a bug related to a VI appearing broken when its not.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Stand alone application(.exe) : Error 7 occurred at Open File+.vi: Open File (error: L'erreur 7 s'est produite à : Open File+.vi:Open File)

    Dear group members - as i am trying to build a stand alone application , i ran into this problem : "Error 7 occurred at Open File+.vi: Open File" (L'erreur 7 s'est produite à : Open File+.vipen File)
    when i select continue i get this error message: "Error 7 occurred at open/create/replace file in Write spreadsheet string.vi->Write To Spreadsheet File (I64).vi->Mono Com Write ini.vi->mainVI2.vi""   (  "L'erreur 7 s'est produite à : Ouvrir/Créer/Remplacer un fichier dans Write Spreadsheet String.vi->Write To Spreadsheet File (I64).vi->Mono Com Write ini.vi->mainVI2.vi" )
    i didn't get what's the problem with this vi, i have no problem running my VIs  
    Can any one here help me out ? 
    here is the project : 
     

    Neither can I.  When I opened your Project, there were no VIs present on the top level.  The Build Spec refers to a Mainv12, which I finally found buried in the folder Interface 2, but when I tried to open it, there were multiple missing VIs.  I notice you have an Interface 2.llb -- is this the same as the VIs in the Interface 2 folder?  If so, try getting rid of the .llb (at least for the purpose of sharing your code in the Forum) and re-post your code.  As it stands, when I open your Project, virtually every entry is marked "Warning: has been deleted, etc."  The fact that so much is "missing" means that I can't easily see/understand MainV12, hence can't guess where the File Not Found error is arising.  Sorry.
    Bob Schor

  • How to include dll into a stand-alone application

    Hi, I wrote a vi to process images from my camera, and I want to build a stand-alone application(exe), so I can share the application with my friends. I just do as wht's in  the Labview help, but when I run the exe file in other PC, it  tells me I haven't nivision.dll etc. My question is how to find out the dll files in my vi and include these files in the stand-alone application?  

    To be honest I am not sure. Its been a while since have used the vision run-time engine. Before I installed it on the target computer. I ddn't include it with my application build.
    Take a look at this http://digital.ni.com/public.nsf/allkb/1A9A18AA574ABEDF86256F780062C240 it might help. Also look at the documentation supplied with the vision deployment license.
    David

  • Error building stand alone applicatio​n, with LV.7.01

    Hi to all....
    I always get this pop up error (see picture attached) when trying to build a Stand alone application. I got the full version of Labview 7.01 and the Application builder also. the runtime engine is also 7.01.
    Regards
    HFZ.
    HFZ
    Solved!
    Go to Solution.
    Attachments:
    Error Building App.JPG ‏51 KB

    Hi GardW
    All comm. problem are handeled.
    The problem was based on the destinations for the .VI's.
    Labview 7.1 isn't so got to manage these. It's something the user got to be carefully about.
    Allmost solved. But now can't get the default 'labview Icon' to my finnished Application.  You know... when you make a stand alone application..
    then somewhere under the building process... you can choose if you want your own Icon added as the application starter icon! If you don't  choose any.. Labview makes the Labview Icon as your application starter Icon.
    And that is my problem now. Any ideas???
    Thanks for trying to help , i appriceate it !!
    Regards HFZ
    HFZ

  • Is it possible to have a user interface in a stand alone application without having LV

    Hi!
    I want to know if it's possible to build a stand-alone application in order to avoid purchasing LV and at the same time having a user interface to display data?
    I really want to know what are the advantages of the stand-alone applications and what are their limits of use?
    Thank u

    If you have the application builder (included in LabVIEW professional and above) you can make a LabVIEW application that can be distributed and run on machines that don't have LabVIEW installed. If you only have LabVIEW full, you can purchase it seperately.
    The target machine requires the LabVIEW runtime, which is freely downloadable from NI, or can be included with the installer of your application.
    Please have a look at the datasheet: http://www.ni.com/pdf/products/us/4msw55.pdf
    If still have more specific questions not mentioned in the above link, please ask.  
    Message Edited by altenbach on 10-01-2007 01:01 AM
    LabVIEW Champion . Do more with less code and in less time .

  • Stand alone application with VISA

    Hello,
     I build a stand alone installer application from my VI using LV 7.1 VI which contains some VISA serial communications with a standard RS232 port.  In build application wizard settings I checked the Serial Port Suport in Advanced settings in Installer .When I installed this stand-alone app on a new PC without LV installed the communication didn´t work: Error -1073807298 - Could not perform operation because of I/O error.
    I don't know if I have to install something else on the target machine. I have seen some topics in discussion forum about the VISA run machine. I imagined it would be included in the installation I had created. If someone could help me I would thank.
    Celia

    Hi Celia,
    You might check to make sure that the VISA Resource Name you are providing in your application is the same as the name the new machine is using.  If you build the application and it is looking for a specific resource that does not exist on the new machine, you might see an error similar to this one.
    Donovan

  • AppleScript Studio - Huge .nib file?

    I'm creating my first AppleScript Studio application, and I've noticed that one of the nib files used in the project has grown to a huge size (20MB)... and I'm wondering why, and whether this is normal?
    (One other has grown to ~5MB, the other three are small ~50kB - around what I'd expect.)
    I do have two buttons that show icons - but the files are small ~100kB each... not enough to explain 20MB worth of nib. (Besides, I thought that the icon files are stored separately - they are copied to the resources folder by XCode.)
    It's not a huge concern at the moment, because everything works, and 20MB is not huge... I'm just concerned that such a simple App has an interface file that's 20MB (the entire app builds to 27.2MB, with 26.2MB of nibs... surely that's not normal?
    Any ideas?
    EDIT: Sorry, I should have mentioned that I'm using IB v 3.0 (629) on Leopard 10.5.2.
    Message was edited by: OSXAlex

    Michael,
    I guess you should be able to do this using a shell script and "curl" - the one problem with curl is that it won't honor your system's proxy settings...
    Andreas

  • Does stand alone engine support higher resolution graphics

    When using LabView 6.0 and building a stand alone application, the graphics doesn't compaire to the graphics on the developement platform.

    It's difficult to tell from here what graphics you are referring to, but if you use the Dialog Controls, then the Operating System you run your application on with automatically place its default controls on the Front Panel. For instance, if you run it on XP, you will get the native XP controls. If you run it on Mac OS X, you see native OS X controls. This may help you out on that. You could give this a try and see how it works.
    J.R. Allen

  • Stand-alone client - lookup problem

    I have a stand-alone Java client application (ContactClient) that I want to use to access an EJB called Contact. I am using J2EE, deploying with deploytool. The EJB has a JNDI name of "MyContact", and the Client reference is "ejb/TheContact". The relevant code in the app is:
    try
    java.util.Properties props = new java.util.Properties();
    props.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.cosnaming.CNCtxFactory");
    props.put(Context.PROVIDER_URL, "iiop://localhost:1050");
    Context initial = new InitialContext(props);
    Object objref = initial.lookup("ejb/TheContact");
    ContactHome home =
    (ContactHome)PortableRemoteObject.narrow(objref,
    ContactHome.class);
    contact = home.create();
    catch (Exception ex)
    System.err.println("Exception: " + ex.getMessage());
    ex.printStackTrace();
    The following exception is thrown by initial.lookup("ejb/TheContact");
    javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
    I have tried changing the name to "TheContact", and to "java:comp/env/TheContact" with no success. If I change it to the JNDI name "MyContact", the lookup works, but the following call, PortableRemoteObject.narrow(), throws a java.lang.ClassCastException.
    What am I doing wrong?
    John

    Hi, Thanks for your fast reply, but it still doesn't work.
    With your Code I get a classCastException in this line:
    "SessionHome home = (SessionHome)ctx.lookup("SessionBeanInstance");"
    Here is the code from the whole thing, as it works with the appclient script:
    SessionHome: //RemoteHomeInterface
    package ejb;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    import javax.ejb.EJBHome;
    public interface SessionHome extends EJBHome {
    Session create() throws RemoteException, CreateException;
    Session //Session RemoteInterface
    package ejb;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    public interface Session extends EJBObject {
    public String getString() throws RemoteException;
    SessionBeanInstance //The SessionBean
    package ejb;
    import javax.ejb.SessionBean;
    import javax.ejb.CreateException;
    import javax.ejb.SessionContext;
    public class SessionBeanInstance implements SessionBean{
    public SessionContext context;
    public String getString(){ return "works"; }
    public SessionBeanInstance() {  }
    public void ejbCreate() throws CreateException { System.out.println("Bean created"); }
    public void ejbActivate() {  }
    public void ejbPassivate() {  }
    public void ejbRemove() {  }
    public void setSessionContext(SessionContext ctx) {  context = ctx;  }
    clientMain //The client class
    package client;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.naming.NamingEnumeration;
    import javax.rmi.PortableRemoteObject;
    import ejb.*;
    import java.util.Hashtable;
    public class clientMain {
    private SessionHome home;
    private Session mySession;
    private Context ctx;
    private Object objref;
    public clientMain() {
    try{
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
    env.put(Context.PROVIDER_URL, "iiop://127.0.0.1:3700");
    try{
    Context ctx = new InitialContext(env);
    SessionHome home = (SessionHome)ctx.lookup("SessionBeanInstance");
    Session remote = (Session)home.create();
    String test = remote.getString();
    System.out.println(test);
    catch(Exception e){ e.printStackTrace(); }
    catch (Exception ex) { 
    System.err.println("Caught an exception.");
    ex.printStackTrace();
    The error occurs only if is start with the "java -jar" script. Here is the error:
    lang.ClassCastException: com.sun.corba.se.impl.corba.CORBAObjectImpl
    at client.clientMain.<init>(clientMain.java:27)
    at client.Client.main(Client.java:10)
    I don't know what to do, to get it work...

Maybe you are looking for

  • DC not found/updated after activation

    Hello all, After successfully activating open activities over NWDS (and the DEV Runtime System already defined), the WebDynpro DC is not updated nor created. How do I resolve this issue. Please help. Thanks. Regards, Jan

  • How To delete Service Entry Sheet

    Dear Experts How to Delete the Service Entry Sheet , or cancellation ,there is no Material Document generated for that entry. Actually we have making the Service Entry through ML81n but system does't make Document Nos, directly Entry sheet nos is the

  • Triggering events in a sub-VI

    I am trying to incorporate a subVI with event handling into a main VI.  Changing values on the main front panel does not elicit changes in the values of the controls in the subVI to which the main controls are wired.  I have attached a simple example

  • Additional Phone sockets not working since infinit...

    Afternoon all, had a problem this week with our old cordless phone dieing which resulted in trying to use the old corded one, its been plugged into the bedroom socket for years as an emergency phone, picked up handset, Nothing, so plugged into the ma

  • APEX Mail problem

    Hello, we are using Gmail for mail hosting. We have a problems with configuration Oracle Application Express for sending mail via Gmail. Gmail require SSL connection. Any ideas how APEX should be configured? Here is Gmail requirements: Outgoing Mail