• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Re. third-party dependencies [was Re: Stock Quotes using AppleScript]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re. third-party dependencies [was Re: Stock Quotes using AppleScript]


  • Subject: Re: Re. third-party dependencies [was Re: Stock Quotes using AppleScript]
  • From: KOENIG Yvan <email@hidden>
  • Date: Tue, 17 Mar 2009 10:23:09 +0100

I just discovered that if we ask the localized string from the app itself, we may get the function's name with a single instruction.

--=====

on run
set p2lproj to (path to application support as text) & "iWork '09:Frameworks:SFTabular.framework:Versions:A:Resources:"
tell application "Numbers" to set ISBLANK_loc to localized string "ISBLANK" from table "Localizable" in bundle file p2lproj
tell application "Numbers" to set VLOOKUP_loc to localized string "VLOOKUP" from table "Localizable" in bundle file p2lproj
end run


--=====

I tested it with Numbers running in Deutsch on my French System.

tell current application
path to application support as text
"Macintosh HD:Library:Application Support:"
end tell
tell application "Numbers"
localized string "ISBLANK" from table "Localizable" in bundle file "Macintosh HD:Library:Application Support:iWork '09:Frameworks:SFTabular.framework:Versions:A:Resources:"
"ISLEEG"
localized string "VLOOKUP" from table "Localizable" in bundle file "Macintosh HD:Library:Application Support:iWork '09:Frameworks:SFTabular.framework:Versions:A:Resources:"
"VERT.ZOEKEN"
end tell



Yvan KOENIG (from FRANCE mardi 17 mars 2009 10:22:36)


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re. third-party dependencies [was Re: Stock Quotes using AppleScript] (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: AppleScript Language Guide: 404 Not Found
  • Next by Date: Re: Re. third-party dependencies [was Re: Stock Quotes using AppleScript]
  • Previous by thread: Re. third-party dependencies [was Re: Stock Quotes using AppleScript]
  • Next by thread: Re: Re. third-party dependencies [was Re: Stock Quotes using AppleScript]
  • Index(es):
    • Date
    • Thread