batgirl003 Posted April 16, 2003 Share 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? Link to comment Share on other sites More sharing options...
Anatoli Posted April 16, 2003 Share Posted April 16, 2003 Isn't that better to do directly in FM? Link to comment Share on other sites More sharing options...
batgirl003 Posted April 16, 2003 Author Share 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. Link to comment Share on other sites More sharing options...
Fitch Posted April 16, 2003 Share 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. Link to comment Share on other sites More sharing options...
batgirl003 Posted April 17, 2003 Author Share 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. Link to comment Share on other sites More sharing options...
jfmcel Posted April 17, 2003 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7844 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