balooka Posted June 23, 2014 Posted June 23, 2014 Hello I have a script that creates an indesign file with correct measurements, and it stores it perfectly when I set a fixed filepath in the AS. I need a filepath that is calculated to a folder on a server. If I put the path in as text, in AS, it works fine, but when I insert a $$VAR it somehow does not understand what it... I am using the following (wich works but is not calculated) save document 1 to "MC Kranten:Weekproductie:WK03:H24997188_POLDER-EN_2.indd"¶ I have tried to create a calc field for the whole path+name and use that in a $$VAR but that does not work. This down not work: save document 1 to" & $$DOCPATH & ¶ Is there anyone that spots what I did wrong here?
comment Posted June 23, 2014 Posted June 23, 2014 Is there anyone that spots what I did wrong here? No, because you don't show us how you defined the $$DOCPATH variable. If I had to guess, I'd say you're missing the quotation marks. BTW, I don't see why you need a global $$variable for this; it seems to me a local $variable should be quite sufficient.
balooka Posted June 24, 2014 Author Posted June 24, 2014 Thanks for the reply the mistake I made was not with the quotations marks but when I turned the path from local to server... that's fixed now but overlooked earlier... sorry. As for the $$globals... I've been reading up on using the vars in AS, and somehow I was convinced that using globals was the way to go, not sure why. I'll make them local and see if it still works fine Thanks comment!
comment Posted June 24, 2014 Posted June 24, 2014 I've been reading up on using the vars in AS But you are not using the variable in Applescript; you are using it in a Filemaker script. And unless you need it to persist after the script has exited, you should use a local $variable.
Recommended Posts
This topic is 3805 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now