batgirl003 Posted April 16, 2003 Posted April 16, 2003 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?
batgirl003 Posted April 16, 2003 Author Posted April 16, 2003 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.
Fitch Posted April 16, 2003 Posted April 16, 2003 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.
batgirl003 Posted April 17, 2003 Author Posted April 17, 2003 You can't do this for a print window. You can do it for an Export, but I need it to print.
jfmcel Posted April 17, 2003 Posted April 17, 2003 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
Recommended Posts
This topic is 7894 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