Applescript Service
I am not a programmer and have been trying to find a way to write an applescript (I would accept javascript - whatever works) to help me with a task I do hundreds of times a day. I will provide as much detail as I can:
When creating a new job we assign the job a Name followed by a letter ID (like D or T) which RARELY would be two letters, followed by a 7 digit number.
Examples:
Name D 1526986
Name Two DK 1526963
I have a set of folders for each kind of project with blank forms, empty folders, etc.
For example, the blank folder "Client Supplied Work" will have:
empty "Proofs" folder
blank " proof" PDF file (inside "Proofs" folder)
empty "786_" folder
empty "Client Supplied" folder
I will copy the "Client Supplied Work" folder into a "Job" folder.
Rename "Client Supplied Work" folder to "Name D 1526986" folder
Enter "Name D 1526986" folder
Rename "786_" folder to "786_Name" folder
Enter "Proofs" folder
Rename " proofs" PDF file to "Name proofs" PDF file
Is it possible to have applescript do this for me? I am not incredibly worried about the jobs with two ID letters. The job names (which are the important information here) can have up to 4 words. I have so far:
tell application "Finder" to set theName to name of item 1 of (get selection)
set the clipboard totheName
I am not sure how to proceed - how to go into the current selected folder (Name D 1526986) to find the "786_" folder and rename using the clipboard, but removing the ID letters and numbers
OS X El Capitan (10.11.6)