How to get Registry data using Photoshop script
How to get Registry data using Photoshop script
Is it possible to get Windows registry data using Photoshop script?
How to get Registry data using Photoshop script
Yes but you would need to use VB to get the information. It could be written to a file and then read in.
I am not good with Vb but here is an example of Photoshop CS5 application path sent to a windows message box.
No error checking has been done.
Code: Select allvar VBFile = File(Folder.temp + "/v.vbs");
if(VBFile.exists) VBFile.remove();
VBFile.open('w');
var VB =
'Option Explicit\r' +
'Dim objRegistry, Key, Info,fso\r' +
'Set fso = CreateObject("Scripting.FileSystemObject")\r' +
'Set objRegistry = CreateObject("Wscript.shell")\r' +
'Info = ReadReg("HKLM\\SOFTWARE\\Adobe\\Photoshop\\12.0\\ApplicationPath")\r' +
'MsgBox(Info)\r' +
'Function ReadReg(RegPath)\r' +
'Set objRegistry = CreateObject("Wscript.shell")\r' +
'Key = objRegistry.RegRead(RegPath)\r' +
'ReadReg = Key\r' +
'End Function\r'
VBFile.write(VB);
VBFile.close();
VBFile.execute();
I am not good with Vb but here is an example of Photoshop CS5 application path sent to a windows message box.
No error checking has been done.
Code: Select allvar VBFile = File(Folder.temp + "/v.vbs");
if(VBFile.exists) VBFile.remove();
VBFile.open('w');
var VB =
'Option Explicit\r' +
'Dim objRegistry, Key, Info,fso\r' +
'Set fso = CreateObject("Scripting.FileSystemObject")\r' +
'Set objRegistry = CreateObject("Wscript.shell")\r' +
'Info = ReadReg("HKLM\\SOFTWARE\\Adobe\\Photoshop\\12.0\\ApplicationPath")\r' +
'MsgBox(Info)\r' +
'Function ReadReg(RegPath)\r' +
'Set objRegistry = CreateObject("Wscript.shell")\r' +
'Key = objRegistry.RegRead(RegPath)\r' +
'ReadReg = Key\r' +
'End Function\r'
VBFile.write(VB);
VBFile.close();
VBFile.execute();
How to get Registry data using Photoshop script
Paul, what is this windows registry stuff you are getting n what it do?
How to get Registry data using Photoshop script
The registry is the heart of the windows system, it holds information on installed programs and settings, OS settings and can be used to store your own variables. If the registry gets corrupted your system is hosed.
How to get Registry data using Photoshop script
TVM Paul, I kind of guessed along those lines… PC vooboo for me to keep away from me thinks…