Tuesday, December 6, 2011

COM, Photoshop.Application,...

Hi,



I make a script to getting the active document in Photoshop:



VBScript ''testps.vbs''

----------------------------------

For iCounter = 1 to 100

Set PSObject = GetObject(, ''Photoshop.Application'')

Set ActiveDoc = PSObject.ActiveDocument

WScript.Echo ActiveDoc.Fullname

WScript.Sleep 500

Next

----------------------------------



run: ''cscript testps.vbs''



After running a script, Photoshop begins to stall. The cursor mouse constantly being replaced at the icon clock.



I think that this is a bug. The programmes of Microsoft Office (and many others), there is nothing like this. With something you can do with this?

What can I do?



Thanks!

No comments:

Post a Comment