Re: Get PostScript font name
When I loop on app.fonts, Arial gives me 3 properties: Family:Arial Name:Arial Bold PostScript Name:Arial-BoldMT The layer.textItem.font gets always the property postScriptName and not the name
View ArticleRe: prompt() dialog box
Thanks for the GuideSet reference script. I wasn't familair with it. I am redaing the textbook Power, Speed & Automatization whch has a chapter on custom dialogs at the end of the book.I wish...
View ArticleRe: prompt() dialog box
A proper class on Photoshop Scripting I don’t know about either. So my Scripting knowledge is pretty patchy as I have found what documentation I could locate a rather difficult read, but the regulars...
View ArticleRe: prompt() dialog box
Yes, I made an account a the ps-scripts.com yesterday, waiting account confirmation. Thanks again for the referrals.
View ArticleRe: Get PostScript font name
M3rde. I've got my font names and postscript font names mixed up! That clears that problem up.
View ArticleRe: prompt() dialog box
Here is a script I wrote to generate a random noise pattern. It is customizable and the settings can be saved and reused. It's nothing fancy, but it has some elements in it that I think will be helpful...
View Articleload a Match Colour Statistics file (.sta) from script?
Hello all, I am trying to load a ".sta" file from an applescript? It looks like this is not in the Photoshop applescript dictionary.does anyone know if there is a location where i can place the file so...
View ArticleMove a layer/layerset into a layerset using ID only
I'm trying to move a layer into a layerset using it's ID (not name or index). This function below works if I use putName instead of putIdentifier, does anyone have some code that will move a layer...
View ArticleRe: Move a layer/layerset into a layerset using ID only
It is simpler using this? var thisLayer = activeDocument.activeLayer;// create new layerset if doesn't existif (activeDocument.layerSets.length == 0) activeDocument.layerSets.add();// return to...
View ArticleWhat app do you use to organize your code snippets? (windows and mac)
It could be free or not.I just need a fast way of finding my portions of code in a more intuitive manner.
View ArticleRe: What app do you use to organize your code snippets? (windows and mac)
I just dumped everything in a file called xtools/xlib/stdlib.js. Other things went into different files in the same folder. Then I use the almighty grep(1) to find what I want. Simpler is betterer.
View ArticleRe: What app do you use to organize your code snippets? (windows and mac)
I'm unorganized except I try to put all my scripts into a dropbox so I can have them on multiple machines. Then find "Stuff" in files: path "\allmyjavascripts\*.js*" If your text editor doesn't have a...
View ArticleRe: load a Match Colour Statistics file (.sta) from script?
I assume JavaScript can be run from AppleScript, so you may want to try recording the operation with ScriptingListener.plugin But generally I would recommend going with JavaScript when automating...
View ArticleHigh Pass Dialog Textbook Exercise
I purchased the Power, Speed and Automatitation textbook to learn Photoshop Scripting. I am working through the exercises in the last chapeter Building Custom Dialogs and have stumbled on the last...
View ArticleRe: prompt() dialog box
Thnak you for sharing hte script.I will try to disect the dialog to use with the custom guide set script.
View ArticleRe: Move a layer/layerset into a layerset using ID only
My extension has it's own "layer list" that represents only a hand ful of layers that have meta data that has been set by the extension. I need to be able to move exisiting layers into existing layer...
View ArticleRe: Move a layer/layerset into a layerset using ID only
This seems to work: moveInside : function( fromLayerID, toLayerID ) { var desc = new ActionDescriptor(); var sourceRef = new ActionReference();...
View ArticleReturn Individual Values From Array as Variables
Is it possible to loop through the channels and return their individual RGB values and names so they can be assigned to a var to be used later in the script as well as to build and populate a scriptUI?...
View ArticleRe: Return Individual Values From Array as Variables
I think you are missing something, a Channel has no Color value per se, its pixels can have various values. Getting the name should not be that difficult. var c1Name = app.activeDocument.channels[i].name
View ArticleRe: Return Individual Values From Array as Variables
Thank you for your reply! By the channel's color, I mean the color value that has been assigned to it. For instance, if I make a channel and assign it a color as in: var c1Color = new SolidColor();...
View Article