Search found 21 matches
- Mon May 13, 2024 3:19 pm
- Forum: Help Me
- Topic: Using 4 characters of folder name to move with contents
- Replies: 0
- Views: 246
Using 4 characters of folder name to move with contents
It's been a while since I needed to work on any of my scripts and I'm unfortunately pretty rusty. I have a folder with as many as a few hundred sub folders all named like this: XXXXLABXX, where the first four characters are an item number. I need to file these in folders that either exist or don't w...
- Tue Oct 27, 2020 1:51 pm
- Forum: Help Me
- Topic: Photoshop Script failed at looping through layers
- Replies: 3
- Views: 2965
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...
- Fri Sep 25, 2020 1:08 pm
- Forum: Help Me
- Topic: [Mac] Linking to a folder placed on a NAS
- Replies: 11
- Views: 7202
Re: [Mac] Linking to a folder placed on a NAS
I have a very similar allergy to Windows machines
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.
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.
- Wed Sep 23, 2020 12:16 pm
- Forum: Help Me
- Topic: Delete duplicate layer names
- Replies: 5
- Views: 3382
Re: Delete duplicate layer names
Glad I could help!
- Wed Sep 23, 2020 11:47 am
- Forum: Help Me
- Topic: [Mac] Linking to a folder placed on a NAS
- Replies: 11
- Views: 7202
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.
- Mon Sep 21, 2020 3:30 pm
- Forum: Help Me
- Topic: Delete duplicate layer names
- Replies: 5
- Views: 3382
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...
- Wed Sep 16, 2020 1:41 pm
- Forum: Help Me
- Topic: Delete duplicate layer names
- Replies: 5
- Views: 3382
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)...
- Thu Sep 03, 2020 5:47 pm
- Forum: Help Me
- Topic: [Mac] Linking to a folder placed on a NAS
- Replies: 11
- Views: 7202
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 ...
- Wed Sep 02, 2020 1:34 pm
- Forum: Help Me
- Topic: [Mac] Linking to a folder placed on a NAS
- Replies: 11
- Views: 7202
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/&...
- Tue Sep 01, 2020 3:40 pm
- Forum: Help Me
- Topic: [Mac] Linking to a folder placed on a NAS
- Replies: 11
- Views: 7202
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...