Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3805 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

Posted
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.

Posted

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!

Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.