Jump to content
Server Maintenance This Week. ×

Calculating save as pdf filename


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

Recommended Posts

I got such a fast responce to my last post re calculating applescript I have now moved onto my next problem which must have been solved many times before but i cant find any referance to it.

I want to be able to calculate the name i save a file as e.g I want to send a personalised fax to a list of my clients, I also want to be able to refer to this fax at a later date so i need to save it with a filename of clientname-todaysdate.

Any ideas :???

Link to comment
Share on other sites

If you're on 8 you can use Set Variable, which is in the Control section of the script steps. Put the entire file path into a named variable, ie., $FileExport, then type that into the file path for Save As PDF (or Export) (no quotes are needed). The below is a relative path. Say you had a field named "Name":

Let (

D = Get ( CurrentDate );

Get (DesktopPath) &

ExportwDate::Name & "_" & Right (Year (D); 2) & "-" & Right ( "0" & Month(D); 2) & "-" & Right ( "0" & Day(D); 2) & ".pdf"

)

ExportwDate.zip

Edited by Guest
changed txt to pdf
Link to comment
Share on other sites

This topic is 6710 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.