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)

Similar Messages

  • 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

  • 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

  • How to change the name of HFM EPMA Application while migrating from dev to

    We have HFM EPMA application in Dev env on 11.1.2.2. We want to migrate aplication to production environment with different name. We are using Life cycle management to migrate the application. I know life cycle management but do not know how to change the application name during migration.
    As we have EPMA application so copy utility will not work. Please helop.

    Hi ,
    You could use the Copy app utility to migrate the application from Dev to Prod.You could have your desired app name while setting up the copy process.
    The EPMA application from Dev will be converted to an Classic application in Prod after the copy.
    Then you might need to use the "Transform Classic to EPM Architect" and convert it to an EPMA application.
    So your Application with the data from Dev will be moved to Prod.
    To Navigate ,
    Launch Workspace
    Navigate ->Administer->Transform Classic to EPM Architect
    Thanks and regards,
    Gunasekaran rayar
    Edited by: Gunasekaran Rayar on Nov 28, 2012 5:04 AM

  • Applescript Studio - Dynamically named button title

    Can anyone tell me if it is possible to retrieve the title of a button in an Applescript Studio application?
    I have no problem if the title of the button is set in the Attributes Inspector.
    EXAMPLE:
    If I set the title of a button to "test" in the attributes inspector and attach a script to a button like:
    *display dialog (get title of button "btnName" of window 1)*
    the result will be a dialog containing the text "test"
    However, if I set the title of a button through a script like
    *set title of button "btnName" of window 1 to "test"*
    and then try to retrieve it the same way
    *display dialog (get title of button "btnName" of window 1)*
    the dialog is empty
    Does anyone know if it is possible to retrieve these dynamically set button titles?

    The name of the button has an applescript name, which is how I reference it from the script. But, the actual project uses a series of buttons which all have their titles set dynamically from a script. Also the mode of the buttons are set to "On Off" (not that I think that should make a difference) I am running leopard 10.5 with xcode 3.0.
    I'm rather new to Applescript Studio and xcode. I don't know what would be wrong with the set-up. And why I would have no problem setting the button titles from a script but not be able to retrieve them.
    I have come up with a work around, keeping track of the button titles in a separate array. I seems stupid to have to do that rather than access the existing button property, but it does work.
    I will have to set up a simple test to explore what may be going wrong.

  • Applescript Studio and Menus

    I am using Applescript Studio and Leopard.
    I have created an application that has menus in it. I can call the menus fine.
    For example, this works:
    on choose menu item theObject
    if (name of theObject is "Test Menu 1") then
    display dialog "You chose Test Menu 1"
    end if
    end choose menu item
    All I want to do is have the user make a choice from the menu, and based on that choice, call an external script. I'm stumped. Any help with this?
    on choose menu item theObject
    if (name of theObject is "Test Menu 1") then
    -- What goes here?
    end if
    end choose menu item

    Sample code.
    Note:
    Four (4) menu items were added to the projects' 'File' menu, and titled 'External Script "Eins"' (Command 1), 'External Script "Zwei"' (Command 2), 'External Script "Drei"' (Command 3), and 'External Script "Vier"' (Command 4).
    Four (4) script files were created ('Eins.scpt', 'Zwei.scpt', 'Drei.scpt', and 'Vier.scpt') and saved to the 'Desktop'. The 'Drei.scpt' and 'Vier.scpt' files were dragged to the projects 'Groups & Files' list into 'Resources'.
    -- Code starts here --
    on choose menu item theObject
    -- Example of calling scripts - external to the AppleScript Studio application.
    if ((name of theObject) is "externalScript01") then run script (((path to desktop from user domain) as string) & "Eins.scpt") as alias
    if ((name of theObject) is "externalScript02") then run script (((path to desktop from user domain) as string) & "Zwei.scpt") as alias
    -- Example of calling scripts - internal to the AppleScript Studio application.
    if ((name of theObject) is "externalScript03") then run script (((path to me) as string) & "Contents:Resources:Scripts:Drei.scpt") as alias
    if ((name of theObject) is "externalScript04") then run script (((path to me) as string) & "Contents:Resources:Scripts:Vier.scpt") as alias
    end choose menu item
    -- Code ends here --

  • AppleScript Studio and Core Animation?

    Is it possible to invoke basic Core Animation events with AppleScript in AppleScript Studio? I'm assuming that Core Animation requires Objective C, but I hope I'm wrong.

    Sample code.
    Note:
    Four (4) menu items were added to the projects' 'File' menu, and titled 'External Script "Eins"' (Command 1), 'External Script "Zwei"' (Command 2), 'External Script "Drei"' (Command 3), and 'External Script "Vier"' (Command 4).
    Four (4) script files were created ('Eins.scpt', 'Zwei.scpt', 'Drei.scpt', and 'Vier.scpt') and saved to the 'Desktop'. The 'Drei.scpt' and 'Vier.scpt' files were dragged to the projects 'Groups & Files' list into 'Resources'.
    -- Code starts here --
    on choose menu item theObject
    -- Example of calling scripts - external to the AppleScript Studio application.
    if ((name of theObject) is "externalScript01") then run script (((path to desktop from user domain) as string) & "Eins.scpt") as alias
    if ((name of theObject) is "externalScript02") then run script (((path to desktop from user domain) as string) & "Zwei.scpt") as alias
    -- Example of calling scripts - internal to the AppleScript Studio application.
    if ((name of theObject) is "externalScript03") then run script (((path to me) as string) & "Contents:Resources:Scripts:Drei.scpt") as alias
    if ((name of theObject) is "externalScript04") then run script (((path to me) as string) & "Contents:Resources:Scripts:Vier.scpt") as alias
    end choose menu item
    -- Code ends here --

  • AppleScript Studio and First Responder

    I am trying to move the cursor from one text field to another based on checking the results of a field, basically to get the user to re-enter the value if my program decides the input is invalid. This is in an AppleScript Studio application under Mac OS X 10.4.11.
    As far as I can see this should be done using the 'First Responder' command, and accordingly I am trying something like the following.
    on end editing theObject
    tell window "mainWindow"
    try
    set myvariable1 to contents of text field "field1"
    on error
    log "field bad"
    end try
    if myvariable1 contains "." then
    set the first responder to text field "field1"
    log "field should not contain a fullstop"
    else
    set myvariable2 to contents of text field "field2"
    end if
    end tell
    end
    By using log commands, I can see that the branch that should call the "set the first responder" command is being executed, but the curser stubbornly refuses to move back to field1 and instead stays in field2 (the field entered after tabbing out of field1).
    Any suggestions?
    Thanks.

    Sample code.
    Note:
    Four (4) menu items were added to the projects' 'File' menu, and titled 'External Script "Eins"' (Command 1), 'External Script "Zwei"' (Command 2), 'External Script "Drei"' (Command 3), and 'External Script "Vier"' (Command 4).
    Four (4) script files were created ('Eins.scpt', 'Zwei.scpt', 'Drei.scpt', and 'Vier.scpt') and saved to the 'Desktop'. The 'Drei.scpt' and 'Vier.scpt' files were dragged to the projects 'Groups & Files' list into 'Resources'.
    -- Code starts here --
    on choose menu item theObject
    -- Example of calling scripts - external to the AppleScript Studio application.
    if ((name of theObject) is "externalScript01") then run script (((path to desktop from user domain) as string) & "Eins.scpt") as alias
    if ((name of theObject) is "externalScript02") then run script (((path to desktop from user domain) as string) & "Zwei.scpt") as alias
    -- Example of calling scripts - internal to the AppleScript Studio application.
    if ((name of theObject) is "externalScript03") then run script (((path to me) as string) & "Contents:Resources:Scripts:Drei.scpt") as alias
    if ((name of theObject) is "externalScript04") then run script (((path to me) as string) & "Contents:Resources:Scripts:Vier.scpt") as alias
    end choose menu item
    -- Code ends here --

  • Option+Return does not work in applescript studio

    Fresh install of osx 10.4.6 Tiger, newest release of xcode.
    I start an applescript studio application project, when editing in Xcode Option+Return does not insert the continue line character.
    I can open the same .applescript in the Applescript Editor and Option+Return does work.
    Also, Option+Return works in my desktop installation of Xcode. No idea what's different here or how to fix it, but it's really messing with my work flow.

    Moved to .NET SDK forum.
    Search here, lots of post on IIS and setting Printer Access Permissions for your application.
    Also search MSDN on what is required to for IIS to access local Printers.
    Also search for ActiveX Controls and Browser permissions, you'll likely have problems there also since most Browsers will not or do not recommend allowing any ActiveX control.
    Don

  • Need applescript studio older version

    I have been asked to program for a company. what I would like to do is go back to an older version of Applescript studio what actually uses Applescript so I can create on interface with drop down windows and that cool floating gray-ish window. I dont know Obj-C.
    what version of AS would that be. thanks for the info.

    AppleScript is a set of system components, so you can't just drop in an older set.
    AppleScriptObjC does use AppleScript, the main difference is in the way it accesses the Cocoa frameworks - AppleScript Studio essentially uses a bunch of terminology and handler wrappers around Cocoa methods that the Studio development team have gotten around to including, while ASOC can call Cocoa methods directly (a bit cleaner than Studio's call method kludge). You don't really need to know Objective C, but it does help a little when looking at the documentation - I know just enough to get an idea what some code snippet is doing, but don't ask me much more than that.
    Older AppleScript Studio projects can still be edited and compiled in Snow Leopard's Xcode, so the components are still in there. Since Apple wants everyone to start using the new framework, the older project templates have been removed, but they can also still be used. If you really need to develop a new Studio application, for example to use on older systems, you just need to do a couple of things.
    1) The AppleScript Studio palette can be enabled in Interface Builder by using defaults write com.apple.InterfaceBuilder3 IBEnableAppleScriptStudioSupport -bool YES
    2) You need to get a copy of an AppleScript Studio project template. If you have access to a Leopard system installation, the easiest way would be to make a copy of the desired template from the */Developer/Library/Xcode/Project Templates/Application* folder there, for example the *AppleScript Application* template (you can also download the old templates from my iDisk here). You probably shouldn't modify anything in the /Developer folder, but you can use custom project templates from your user's *~/Library/Application Support/Developer/Shared/Xcode/Project Templates/Application* folder, so copy your project template there (make intermediate folders as needed).
    Once the template is copied, you can select it when making a new project and use the old terminology as usual.

  • AppleScript Studio + Sparkle Framework for auto updates

    I have sucessfully added the Sparkle framework to one of my Applescript Studio applications, but I'm having trouble finding out how to call a Cocoa method from within an Applescript. I need to live-update the interval at which Sparkle checks for updates. As of now I have to restart the app for the changes to take place.
    Here is the explanation from their documentation on how to do it...
    http://sparkle.andymatuschak.org/wiki/Documentation/PeriodicChecks
    +You might make a menu in your preferences to let the user specify this interval; just update SUScheduledCheckInterval in the user defaults with the user’s choice—a setting there will override one in Info.plist. You’ll need to let Sparkle know when the interval changes, though: *just call scheduleCheckWithInterval: on your SUUpdater (it’ll cancel the old one).*+
    I just don't know how to do this in Applescript. I'm assuming it's possible through the "call method" command, but I haven't been able to figure it out by myself.
    My best guess was the following...
    +call method "scheduleCheckWithInterval:" of object "SUUpdater"+
    Has anyone got this working before?
    Thanks for any help.

    Won't be a problem with AppleScriptObjC

  • 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

  • How to localize layout names

    I want to localize the names of "Trays" and "Top Menus" layouts that are displayed in the drop-down box in "My Profile" . I tried to translate the wwTraysLayoutLabel and wwTopMenusLayoutLabel in ww_strings.htm but this did not work. Do you have any ideas how I can localize them?

    Hi!
    Did you put language ID before string ID (e.g. <@pl.wwTraysLayoutLabel=Translated text@>)?
    Jakub

  • Is it possible to localize preset name?

    Hi,
    I would like to localize the name of presets that my Export Plugin defines (the preset that are inside the plugin, in the presets/ dir). Using the LOC function does not work. I looked at the built-in Export Plugin in Lightroom, they use another function (ZSTR), and the actual string files are located in a totally different place.
    Is there a way of translating a preset name?
    Thanks,
    Raphael

    Hi Raphael, this is not possible with the LR2 SDK. I'll note that as a feature request. I don't know yet whether it will be possible for LR3 or not.

  • IOS Air (13 beta) localization of names not working

    Has anyone tried to release an app with differrent names lately?
    For some reasons the main app name <filename> is not used when a different localization (that is not supported by the app) is used. The localizations within the app run fine, but the file name is wrong...
    This was working a couple of releases before. Has anyone seen this behavior as well and maybe found a way to get the right file name displayed on the device?
    Best,
    Josh

    Hello Developers,
    I would like to localize the name ONLY for an app I created in the xml file.  For example, if I localize the name in English and Spanish, what name would appear for someone viewing the app in the AppStore in Italy?  Would it default to English?
    As well, from Flash Pro 6, do I need to select Spanish and English in the Languages area, even if I am only localizing the name.
    Thank you,
    Justin

Maybe you are looking for

  • Cannot update to Vs. 3.6.15 freezes my PC every time, Windows says there is compatibility problem.

    Firefox keeps telling me my vs. 3.5.17 is out of date and to update to 3.6.15, each time I attempt this it ends up freezing up my computer running Windows Vista. Checking for solutions, Windows says it is a compatibility issue. I have never had a pro

  • Flash Cs4 install problems

    Hello folks, About 2 weeks ago I bought Flash Cs4. I installed it the same day and everything was working wonderfully! About 2 weeks into it, I opened flash one morning and the user agreement pooped up. I said to 'accept' to access flash but when I d

  • Where are the validations of the fields done in  BAPI_GOODSMVT_CREATE ?

    Hi , I have to more or less simulate bapi_goodsmvt_create and perform the same validations as that in this bapi.....can anyone tell me exactly where the validations are done for the required data ...for example if my batch has crossed the sled date i

  • Everything is grayed out

    ok. Ive been using ichat with my aim screen name for about two years now. all of a sudden when i click ichat, it opens, but i see no window, no buddy list, nothing....the dock says its open, the bar at the top of the screen has all the menus for icha

  • CS5 Still not sorting Function Menu!

    Come on guys, even if it needs to be an option on the preferences, why the hell can't I have the right click function menu alpha sorted! That menu is meant to help me navigate my code, not slow me down. 2nd thing, and 2nd time I have mentioned it...