Search found 18 matches

by jaydoubleyou80
Wed Sep 23, 2020 12:16 pm
Forum: Help Me
Topic: Delete duplicate layer names
Replies: 5
Views: 109

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: 9
Views: 193

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: 109

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: 109

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: 9
Views: 193

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: 9
Views: 193

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/")} I also don't...
by jaydoubleyou80
Tue Sep 01, 2020 3:40 pm
Forum: Help Me
Topic: [Mac] Linking to a folder placed on a NAS
Replies: 9
Views: 193

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 this: if ("Macintosh")...
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: 193

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
by jaydoubleyou80
Fri Sep 22, 2017 12:33 pm
Forum: Help Me
Topic: add part of filename
Replies: 6
Views: 4889

Re: add part of filename

txuku, this is much better than what I was trying to do.
by jaydoubleyou80
Thu Sep 21, 2017 8:12 pm
Forum: Help Me
Topic: add part of filename
Replies: 6
Views: 4889

Re: add part of filename

I think this has a few issues. First, my regular expressions may work, but I think there's something wrong with the pivotal one, and I don't know enough to fix it. Second, this leaves a leading space at the beginning of the text that doesn't need to be there (again, probably my regular expression). ...