Hello,
I've been reading some posts (one here) about localization - I've even tried the X suggestion to execute this code:
Code: Select allstrings adobe-photoshop-file | grep '\$\$\$'
in order to get Z-strings... but got: "strings: can't map Adobe Photoshop CS4.app (invalid argument) as the only result.
Anyway, I'd like to embed into my script the path to Photoshop CS4 Panels folder, currently:
Code: Select allapp.path + "/Plug-ins/panels/"
but using localization.
I've read that
Code: Select allvar scriptsPath = app.path + "/" + localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts");
refers to Presents/Scripts folder, so what's the way to get a similar path to Panels?
Eventually, where could I find a (more or less) complete list of $$$ strings for Photoshop folders?
Thanks in advance
Davide
EDIT:
Using the Adobe Photoshop CS4 executable that's *inside* the PS package I've been able to get a huge set of strings... still waiting to catch the correct one...
Localize "Panels" path
-
Mike Hale
Localize "Panels" path
localize("$$$/private/Plugins/DefaultPluginFolder=Plug-Ins") will localize the plug-ins folder. I haven't found a z-string for the panels folder. I don't know maybe it is not localized and is always 'Panels'.
When searching for z-strings in photoshop.exe I find it helpful to pipe the results through grep more than once.
strings photoshop.exe | grep '\$\$\$' | grep 'private' | grep 'Remember'
strings photoshop.exe | grep '\$\$\$' | grep 'Channel' | grep 'RGB'
When searching for z-strings in photoshop.exe I find it helpful to pipe the results through grep more than once.
strings photoshop.exe | grep '\$\$\$' | grep 'private' | grep 'Remember'
strings photoshop.exe | grep '\$\$\$' | grep 'Channel' | grep 'RGB'
-
undavide
Localize "Panels" path
Hello Mike,
to date I'm using:
Code: Select alllocalize("$$$/private/Plugins/DefaultPluginFolder=Plug-Ins") + "/" + localize("$$$/private/Plugins/FlashFolder=Panels")
(found in the strings) - I've asked to some foreign people to gently test it with different PS versions, so I'm waiting to know whether it works or not
Thanks anyway,
Davide
to date I'm using:
Code: Select alllocalize("$$$/private/Plugins/DefaultPluginFolder=Plug-Ins") + "/" + localize("$$$/private/Plugins/FlashFolder=Panels")
(found in the strings) - I've asked to some foreign people to gently test it with different PS versions, so I'm waiting to know whether it works or not
Thanks anyway,
Davide
-
xbytor
Localize "Panels" path
but got: "strings: can't map Adobe Photoshop CS4.app (invalid argument) as the only result.
The .app thing is a folder, not a file. You should be grepping Adobe Photoshop CS4.app/Contents/MacOS/Adobe Photoshop CS4 which is the actual executable.
The .app thing is a folder, not a file. You should be grepping Adobe Photoshop CS4.app/Contents/MacOS/Adobe Photoshop CS4 which is the actual executable.
-
xbytor
Localize "Panels" path
Code: Select allI've asked to some foreign people to gently test it with different PS versions, so I'm waiting to know whether it works or not
I use the localized definitions that you are using and as near as I can tell, "Plug-ins/Panels" is the same across several European and Asian languages. At least, that's the way it looks in my WinXP installation. I have 6 or so localized versions of CS5 installed on the same box and the only paths that appear to truly be localized are the Scripting docs folder and the examples folder. Things may be different if you install a Japanese version of PS on a Japanese version of WinXP, but I'm not in a position to test that case. What I'm seeing may also be an artifact from installing the English version of PS first.
I use the localized definitions that you are using and as near as I can tell, "Plug-ins/Panels" is the same across several European and Asian languages. At least, that's the way it looks in my WinXP installation. I have 6 or so localized versions of CS5 installed on the same box and the only paths that appear to truly be localized are the Scripting docs folder and the examples folder. Things may be different if you install a Japanese version of PS on a Japanese version of WinXP, but I'm not in a position to test that case. What I'm seeing may also be an artifact from installing the English version of PS first.
-
Mike Hale
Localize "Panels" path
undavide wrote:"$$$/private/Plugins/FlashFolder=Panels"
I have done several searches using 'folder', 'extension', 'panel', etc. Looks like I forgot that the search is case sensitive.
I have done several searches using 'folder', 'extension', 'panel', etc. Looks like I forgot that the search is case sensitive.
-
bdeshazer
Localize "Panels" path
Ok, I've grep'd and googled and haven't found an answer.
Anyone know what a localized string for the Presets/Actions folder should be?
Anyone know what a localized string for the Presets/Actions folder should be?
-
Mike Hale
Localize "Panels" path
You could try building the path using( I can't test to make sure this works )
Code: Select allapp.path + '/' + localize("$$$/ApplicationPresetsFolder/Presets=Presets")+'/'+localize("$$$/private/FilePreferences/DefaultActionDir=Actions");
Code: Select allapp.path + '/' + localize("$$$/ApplicationPresetsFolder/Presets=Presets")+'/'+localize("$$$/private/FilePreferences/DefaultActionDir=Actions");
-
bdeshazer
Localize "Panels" path
Mike Hale wrote:You could try building the path using( I can't test to make sure this works )
Code: Select allapp.path + '/' + localize("$$$/ApplicationPresetsFolder/Presets=Presets")+'/'+localize("$$$/private/FilePreferences/DefaultActionDir=Actions");
Thanks (again) Mike, looks like that works. Did I miss this grepping through the 'strings' output of the PS executable, or did you find this info somewhere else?
Code: Select allapp.path + '/' + localize("$$$/ApplicationPresetsFolder/Presets=Presets")+'/'+localize("$$$/private/FilePreferences/DefaultActionDir=Actions");
Thanks (again) Mike, looks like that works. Did I miss this grepping through the 'strings' output of the PS executable, or did you find this info somewhere else?
-
Mike Hale
Localize "Panels" path
I guess you missed it. I think this is what I used
Code: Select allstrings photoshop.exe | grep '\$\$\$' | grep 'Action'
Code: Select allstrings photoshop.exe | grep '\$\$\$' | grep 'Action'