rick fry Posted December 12, 2005 Share Posted December 12, 2005 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 More sharing options...
Fenton Posted December 12, 2005 Share Posted December 12, 2005 (edited) 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 December 12, 2005 by Guest changed txt to pdf Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now