Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7517133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:21:00+00:00 2026-05-30T01:21:00+00:00

I have created an Automator workflow service (not Automator application!) under Mac OS X

  • 0

I have created an Automator workflow service (not Automator application!) under Mac OS X 10.7 (Lion) whose core is an AppleScript action. The action needs to notify the user at several points about its operations (including a possible abort) and I would like the messages to be localized in the user’s language.

Following Apple‘s string localization guidelines, I have created locale resource folders inside the workflow bundle (i.e. <bundle>/Contents/Resources/<lang>.lproj/ folders) and placed Localizable.strings files inside containing string mappings in UTF-16 encoding. I call these using the localized string of <string_mapping_token> construct of AppleScript.

This works just fine when packed into an AppleScript application bundle (tested and confirmed), but localization fails when the exact same script and structure are used inside an Automator generated service – all I get are the raw tokens (note the localized menu names in ServicesMenu.strings are picked up just fine – the resource folder structure itself does not seem to be the problem).

My guess is the issue is that inside an Automator workflow, as opposed to an application bundle, the context of localized string is Automator (or Automator Runner, as it may be), not the bundle proper, and thus localization lookup fails. I have tried adding a Bundle identifier (CFBundleIdentifier) to the service and referring to that via Automator’s own localized string in bundle with identifier <identifier> construct, but that seems to be restricted to action bundles registered with Automator.

Is there a workaround for this issue allowing me to use AppleScript’s native localization mechanism inside a self contained AppleScript service?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:21:03+00:00Added an answer on May 30, 2026 at 1:21 am

    The localized string command doesn’t seem to have the right context in an Automator service, but you can use any bundle that has the resources in the usual places. If you know where the bundle is (your service workflow, a containing application, etc), you can specify that path in the command, e.g.

    get localized string of "testing" in bundle file "path:to:your:bundle"
    

    EDIT: the following is an example of what works for me:

    I created a new service workflow that receives text in any application, consisting of a Run AppleScript action:

    property myPath : (path to library folder from user domain as text) & "Services:localize test.workflow"
    
    on run {input, parameters}
    
        try
            display alert getLocalizedString("TESTING") & return & getLocalizedString("NO_ERROR") message "Input Text:    " & quoted form of (input as text)
        on error errmess number errnum
            display alert "Error" & errnum message errmess
        end try
    
        return input
    end run
    
    on getLocalizedString(theString)
        get localized string of theString in bundle file myPath
    end getLocalizedString
    

    I named the workflow “localize test”, and saved it in the default ~/Library/Services folder (this is the path is in the myPath property). Next, a Localizable.strings file (UTF-16 created with BBEdit) was placed in the service bundle in the /Contents/Resources/English.lproj folder that contains the following:

    /* Automator localization test */
    "NO_ERROR" = "There seems to have been no error.";
    "TESTING" = "Hmmm, works OK for me...";
    

    An additional test using an AppleScript script bundle on my Desktop with the same resources added also worked OK, so it looks like anything will do as long as you use a path to a valid bundle directory structure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have created a workflow activity that do give the item creater of a
I have AIR application that i have created. One of my customers wants me
My problem i sthat i have created a web application in visual studio 2008
We have an application based on RichFaces 3.3.3 . We have created automated tests
I'm trying to create a universal Automator action for Mac OS X 10.5 &
I have created an web based application through which the users can change the
I have created a websetup using Visual Studio for deployment of a web application.
I have created a windows service with Automatic Start Type and install it in
I have tried creating an application in Automator that when double clicked, will tar
I created an Android project a few months ago and now have to automate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.