April 16, 200322 yr I am writing an applescript that will auto print two layout pages in Filemaker (the applescript does way more than this, but this is the part that matters for this part). The print window comes up and I have to save the postscript files to the desktop. The prompt window comes up requesting what I want the name of the postscript file name to be. I want the name to be the database name_1.ps for one and _2.ps for the other. How can I have that auto populate?
April 16, 200322 yr Author I am not sure what you mean by your question. I HAVE to print the files to postscript on my desktop, so, when my print window comes up it requires me to put in a name of the output file. The name MUST be the specific names I quoted above. I am sure this is not a command for FM, rather for the Finder. Do you know how I could do it better? I am looking for any suggestions. The only required outputs are that I get a PS file output with the exact names quoted above.
April 16, 200322 yr You can't "auto-populate" the save dialog AFAIK (although it seems to me there's a plugin that does this), but if you can get it to save the ps file with a default name, then you can tell the Finder to rename the file afterwards. Status (CurrentFileName) & "_1.ps" will give you the name.
April 17, 200322 yr Author You can't do this for a print window. You can do it for an Export, but I need it to print.
April 17, 200322 yr Most FileMaker developers use DialogMagic for this functionality, but with AppleScript there are alternatives. Using a scripting addition you can simulate key strokes. The ones I
Create an account or sign in to comment