Search found 20 matches

by jaydoubleyou80
Tue Oct 27, 2020 1:51 pm
Forum: Help Me
Topic: Photoshop Script failed at looping through layers
Replies: 3
Views: 2686

Re: Photoshop Script failed at looping through layers

I had a hard time modifying your script, so I just rewrote it. The below doesn't need you to turn the layers off, and will revert to the original state after completing the saves. It's also not recursive to look into layer groups, but that could be added. It cycles through turning off all layers vis...
by jaydoubleyou80
Fri Sep 25, 2020 1:08 pm
Forum: Help Me
Topic: [Mac] Linking to a folder placed on a NAS
Replies: 11
Views: 6939

Re: [Mac] Linking to a folder placed on a NAS

I have a very similar allergy to Windows machines :lol:

I always take for granted that #target Photoshop is the first line, but haven't needed to bring it to the front, as that seems to happen automatically for me.
by jaydoubleyou80
Wed Sep 23, 2020 12:16 pm
Forum: Help Me
Topic: Delete duplicate layer names
Replies: 5
Views: 3293

Re: Delete duplicate layer names

Glad I could help!
by jaydoubleyou80
Wed Sep 23, 2020 11:47 am
Forum: Help Me
Topic: [Mac] Linking to a folder placed on a NAS
Replies: 11
Views: 6939

Re: [Mac] Linking to a folder placed on a NAS

That's great! It's always nice when a seemingly insolvable problem turns out to be something like that. I'm still curious what it was about that server that prevented it from working, but at least your issue is fixed.
by jaydoubleyou80
Mon Sep 21, 2020 3:30 pm
Forum: Help Me
Topic: Delete duplicate layer names
Replies: 5
Views: 3293

Re: Delete duplicate layer names

You made me realize I wasn't following my code through the process in my mind. As the script was iterating through, it was deleting layers as it was going. But that was modifying the index, so a layer could very easily be skipped. I am positive there is a better way to do this, but in order to accou...
by jaydoubleyou80
Wed Sep 16, 2020 1:41 pm
Forum: Help Me
Topic: Delete duplicate layer names
Replies: 5
Views: 3293

Re: Delete duplicate layer names

I think this should do it, but if you have grouped layers that would need some tweaking. var myDoc = app.activeDocument; try { for(n=0;n<myDoc.layers.length;n++){ for (i=1; i < myDoc.layers.length; i++){ if(myDoc.layers[n].name === myDoc.layers[i].name){ myDoc.layers[i].remove(); } } } } catch (err)...
by jaydoubleyou80
Thu Sep 03, 2020 5:47 pm
Forum: Help Me
Topic: [Mac] Linking to a folder placed on a NAS
Replies: 11
Views: 6939

Re: [Mac] Linking to a folder placed on a NAS

Sorry it hasn't actually been that helpful. I'm at a loss because besides adding / after the folder name in the Mac path, I copied your code from your previous comment exactly and just swapped out the path for one to a drive I have mounted via my network. The script executed just how you want. Does ...
by jaydoubleyou80
Wed Sep 02, 2020 1:34 pm
Forum: Help Me
Topic: [Mac] Linking to a folder placed on a NAS
Replies: 11
Views: 6939

Re: [Mac] Linking to a folder placed on a NAS

I have the same issue with Windows machines, I just don't work with them enough to be well versed. Try putting one more slash after your file path in the Mac testFolder variable. if (StringMatches("Mac", $.os)) {var testFolder = new Folder("/Volumes/SERVERNAME/Storage/Resources/Test/&...
by jaydoubleyou80
Tue Sep 01, 2020 3:40 pm
Forum: Help Me
Topic: [Mac] Linking to a folder placed on a NAS
Replies: 11
Views: 6939

Re: [Mac] Linking to a folder placed on a NAS

You said they are just examples, but your Mac file location is missing a slash after the tilde, and has an extra after Storage. if ("Macintosh") {var testFolder = new Folder("~/Storage/Resources/Test")}; if the location is on a NAS drive though, you'll want something more like th...
by jaydoubleyou80
Wed Aug 05, 2020 12:22 pm
Forum: Help Me
Topic: Help with using ExtendScript in Sublime Text editor please
Replies: 2
Views: 2169

Re: Help with using ExtendScript in Sublime Text editor please

sorry to say I have nothing that can help, but could you check that link? It's not leading me anywhere and I'm very interested in switching to sublime over VS Code