On my desktop I have (only) one folder which name starts with the word
�Proofs� (the rest of the name will always be different). I need to build an
Applescript that finds that folder and copies its name to the clipboard BUT
only the part without the word �Proofs�. For instance I could have a folder
called �ProofsLinda&Jason600PYDVD�. So the script should copy
�Linda&Jason600PYDVD� to the clipboard.
If this was not complicated enough, the script now need to make a decision
based on the last letters. There are 8 possible combinations jumping to 4
possible places in the script (or triggering 4 independent scripts):
PYDVD
PNDVD
OYDVD
ONDVD
PYCD
PNCD
OYCD
ONCD
So if the name (stored in the clipboard) contains �PYDVD� jump to script
step �soandso�, if the name contains �PYCD� jump to the same place.
If the name contains �PNDVD� jump to script step �soandso2�, if the name
contains �PNCD� jump to the same place.,
Etc., etc for a total of 4 decision makings.
Is this possible? I very much appreciate any suggestions.
Karo