addBorder
addBorder
In CS5 the 'dot' key has the same name for both the one on the main keyboard and the one in the number pad. In CS4 they have different names. Here is a fix so you can use either in both versions.
Code: Select allreturn ((( event.keyName >= '0' ) && ( event.keyName <= '9' )) || event.keyName == 'Decimal' || event.keyName == 'Period') && ! KeyHasModifier ( event );
Code: Select allreturn ((( event.keyName >= '0' ) && ( event.keyName <= '9' )) || event.keyName == 'Decimal' || event.keyName == 'Period') && ! KeyHasModifier ( event );
addBorder
Thanks Mike for the script.
I'm happy.
I have tested the script with the fix. The script works fine in CS4 and CS5.
Could one also take negative values, for inner borders? Is this still insertable?
This would be perfect.
Would be also nice if the script is also applicable for batch works.
Big thanks for the work, can I donate for your work?
Thanks Wolfgang
I'm happy.
I have tested the script with the fix. The script works fine in CS4 and CS5.
Could one also take negative values, for inner borders? Is this still insertable?
This would be perfect.
Would be also nice if the script is also applicable for batch works.
Big thanks for the work, can I donate for your work?
Thanks Wolfgang
addBorder
pierrelabbe wrote:Can I distribute it?
You can but I prefer that you wait until I have made the suggested changes. I know the dialog needs work. Even just on Windows the CS4 version does not look as good as the CS5 version and I have not check it on Mac.
! want to add a non-uniform trim and inner border feature. And make it action recordable so it can be used in an action that can be batched.
For the border color, it works with layers as long as the document has a background. I do not think I would want it to add the color if there is no background. Maybe I can set up the dialog so if there is no background layer the color is disabled like it is in the GUI Canvas Size.
It is a holiday weekend here in the USA so it may be the first of next week before I can post an update.
Thanks for the feedback and let me know about any other bugs/features.
You can but I prefer that you wait until I have made the suggested changes. I know the dialog needs work. Even just on Windows the CS4 version does not look as good as the CS5 version and I have not check it on Mac.
! want to add a non-uniform trim and inner border feature. And make it action recordable so it can be used in an action that can be batched.
For the border color, it works with layers as long as the document has a background. I do not think I would want it to add the color if there is no background. Maybe I can set up the dialog so if there is no background layer the color is disabled like it is in the GUI Canvas Size.
It is a holiday weekend here in the USA so it may be the first of next week before I can post an update.
Thanks for the feedback and let me know about any other bugs/features.
addBorder
Here is a new version. The changes are...
Will now accept negative values. This allows for non-uniform trimming of a document and inner borders.
Added option for inner border. If a negative value for a side is used and the inner border checkbox is checked it will create an inner border.
I have added localized ZString for as many of the strings as I could find. Please let me know if I made a poor choice and the string is out of context.
The dialog still needs attention. And I have not made it action recordable yet. I'm not sure what settings to use in the playbackParameters. Although the user can enter any unitType the script requires pixels.
Will now accept negative values. This allows for non-uniform trimming of a document and inner borders.
Added option for inner border. If a negative value for a side is used and the inner border checkbox is checked it will create an inner border.
I have added localized ZString for as many of the strings as I could find. Please let me know if I made a poor choice and the string is out of context.
The dialog still needs attention. And I have not made it action recordable yet. I'm not sure what settings to use in the playbackParameters. Although the user can enter any unitType the script requires pixels.
addBorder
It does not run in Photoshop or just not in ESTK? With the <javascriptresource> section it will not run in ESTK. But it works for me in both Photoshop CS4 and CS5.
It is ok that you removed the <javascriptresource> section in this version as it is not finished and is not working. But in the next version that section will be needed to allow the script to be action recordable.
It is ok that you removed the <javascriptresource> section in this version as it is not finished and is not working. But in the next version that section will be needed to allow the script to be action recordable.
addBorder
The script may still have bugs. I have only tested it using a RGB doc. That line will throw an error if "Rd " does not have four chars. The document mode may also be the reason.
I just did a quick test and the script failed with a CMYK doc but it did not throw an error at that line so check to make sure "Rd " has four chars. And only use on RGB images until I can post a fix.
How are the localization strings working for you?
I just did a quick test and the script failed with a CMYK doc but it did not throw an error at that line so check to make sure "Rd " has four chars. And only use on RGB images until I can post a fix.
How are the localization strings working for you?