Search found 10 matches

by AnilTejwani
Wed Feb 13, 2019 5:51 am
Forum: Help Me
Topic: Scripting Multiple rectangle selection
Replies: 2
Views: 54

Re: Scripting Multiple rectangle selection

function slctn() { sel = (aD = activeDocument).selection for(i = 0; i < (arg = arguments).length;) { sel.select(arg[i++], SelectionType.EXTEND) } sel.fill(foregroundColor), sel.deselect() } slctn([[0,0], [0,10], [10,10], [10,0]], [[20,20], [20,30], [30,30], [30,20]], [[200,200], [200,230], [230,230...
by AnilTejwani
Tue Feb 12, 2019 12:39 pm
Forum: Help Me
Topic: Scripting Multiple rectangle selection
Replies: 2
Views: 54

Scripting Multiple rectangle selection

Hi, Is it possible to make multiple selection and then fill it? (its not a continous selection, its multiple squares/rectangles and they dont overlap) Manually I would select a rectangle, then use 'shift' and make second selection, use 'shift' again and make next selection... [refer attachment] var ...
by AnilTejwani
Mon Feb 11, 2019 11:46 am
Forum: Photoshop Scripting - General Discussion
Topic: Download and Open Web Image In Photoshop
Replies: 0
Views: 47

Download and Open Web Image In Photoshop

Hi, Is it possible to download and open an web-image in photoshop? Example if I do this *manually* it works i. Open Photoshop, ii. click file-> open iii. paste the web image url ( example 'https://tejwani.com/wp-content/uploads/2018/02/slide1-01.jpg' ) it takes a while but open the file in photoshop...
by AnilTejwani
Sat Jan 26, 2019 2:08 am
Forum: Adobe Bridge Scripting: General Discussion
Topic: Custom Right Click Item
Replies: 3
Views: 346

Re: Custom Right Click Item

if (MenuElement.find ('tsMenu1') == null){ var tsMenu1Cmd = new MenuElement( "menu", "My Custom Menu", "at the end of Thumbnail", "tsMenu1"); var tsSubMenu1Cmd= new MenuElement( "command", "My Custom Sub Menu", "at the end of tsMenu1" , "tsSubMenu1" ); tsSubMenu1Cmd.onSelect = function() { alert('y...
by AnilTejwani
Sat Jan 26, 2019 1:52 am
Forum: Photoshop Scripting - General Discussion
Topic: How to get/convert Windows path not /d/ps-projects/ but D:\ps-projects\
Replies: 3
Views: 238

Re: How to get/convert Windows path not /d/ps-projects/ but D:\ps-projects\

$.writeln(decodeURI(activeDocument.fullName.fsName));
Thanks Geoff.
What i was missing was the .fsName bit, which I understand would be File System Name.

Thanks once again.
by AnilTejwani
Fri Jan 25, 2019 10:56 am
Forum: Photoshop Scripting - General Discussion
Topic: How to get/convert Windows path not /d/ps-projects/ but D:\ps-projects\
Replies: 3
Views: 238

How to get/convert Windows path not /d/ps-projects/ but D:\ps-projects\

Hi Guys,

I was wondering if it would be possible to convert the jsx path (example /d/ps-projects/a/b/c/) to windows path (i.e. d:/ps-projects/a/b/c/ or d:\ps-projects\a\b\c\)

Thanks in advance.

Anil
by AnilTejwani
Tue Jan 22, 2019 5:19 am
Forum: Photoshop Scripts
Topic: Photoshop Batch processing
Replies: 1
Views: 1085

Re: Photoshop Batch processing

Did you get this sorted or still looking?
PM me if interested to discuss this task or any other PS scripting Task.
Cheers
by AnilTejwani
Tue Jan 22, 2019 5:04 am
Forum: Adobe Bridge Scripting: General Discussion
Topic: Custom Right Click Item
Replies: 3
Views: 346

Re: Custom Right Click Item

It's partially possible so inserting your command not inside Place item but just somewhere over / under that Place item.
I didn't do that long time, but if you are interested write private message to me so I'll try to recall it when I have time ;)
PM send. Thanks in advance.
by AnilTejwani
Mon Jan 21, 2019 12:16 pm
Forum: Adobe Bridge Scripting: General Discussion
Topic: Custom Right Click Item
Replies: 3
Views: 346

Custom Right Click Item

Hi, A. Is it possible to create custom-right-click-menu-item for bridge? something like attached? B. If yes to A above, any sample-code would be great. I am trying to achieve a custom 'place->In Photoshop(Top Layer Only)' so that when the selected image(which could be PSD/TIF) is placed on current d...

Go to advanced search