What kind of data do you enter into the JobName field? Certain characters, while perfectly acceptable as text entered into a text field cannot be used as characters in a folder or file name.
The JobName field is alfa numeric with all spaces replaced with _ that field is used to create the first folder and the folder gets created ok. It is when I try to reference it an put it in quotes that I run into problems. The actual folder name created by the first step in the test data is
That is the field I then need to pass on within quotes
Since there are no spaces I don't see why you need the quotes, but I am not an expert in AppleScript syntax here.
"\"" & Jobs::JobName & "\""
Quote ( Jobs::JobName )
will return the value of JobName inside double quotes.
I was missing a double quote and that fixed the variable so the field was in quotes. It turned out that was not the problem…I needed to send the field without quotes. I had problems with other fields which were causing the problem…ugh. The script now works and creates all the proper folders.
Again thanks for your help … I just learned how to add quotes which I'm sure will come in handy in the future.