mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
Fixed an error in dojs.vbs where arguments were being split.
* Fixed SetText() to update bounds.
This commit is contained in:
@@ -4,9 +4,11 @@ Set appRef = CreateObject("Photoshop.Application")
|
||||
if wScript.Arguments.Count = 0 then
|
||||
wScript.Echo "Missing parameters"
|
||||
else
|
||||
' wScript.Echo wScript.Arguments(0)
|
||||
' wScript.Echo wScript.Arguments(1)
|
||||
path = wScript.Arguments(0)
|
||||
args = wScript.Arguments(1)
|
||||
error = appRef.DoJavaScriptFile(path, Split(args, ","))
|
||||
error = appRef.DoJavaScriptFile(path, Split(args, ",,"))
|
||||
if Not error = "true" and Not error = "[ActionDescriptor]" and Not error = "undefined" Then
|
||||
Err.raise 1, "dojs.vbs", error
|
||||
end if
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
#include lib.js
|
||||
|
||||
// var saveFile = File(arguments[0]);
|
||||
var arg = 'app.activeDocument.layerSets.getByName("Text").artLayers.getByName("short");';
|
||||
var arg = "app.activeDocument.layerSets.getByName('Text').artLayers.getByName('short').textItem.contents='When another sandman is discarded from a lane,';";
|
||||
var set = eval(arg);
|
||||
// set.textItem.size=10;
|
||||
alert(set.textItem.font)
|
||||
// var doc=app.activeDocument
|
||||
// doc.layerSets.getByName("ResolveGem").merge();
|
||||
// alert(doc.artLayers.getByName("ResolveGem").bounds);
|
||||
|
||||
Reference in New Issue
Block a user