Re: Re. third-party dependencies [was Re: Stock Quotes using AppleScript]
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