Perplexed?
Perplexed?
- Subject: Perplexed?
- From: Brian Christmas <email@hidden>
- Date: Sun, 20 Jul 2014 12:48:37 +1000
G'day scripters
This has me stumped!
When I use this script with the line setting the file extension to ".pdf" the Finder is resetting the .pdf extension to #0. Any thoughts on why please.
Regards
Santa
if AcrobatPreFlightFlag then set tempName to name of document 1 if items -4 thru -1 of tempName as text is equal to ".pdf" then set tempName to items 1 thru -5 of tempName as text set thePreFlightName to tempName & " _UEI Preflight" as text set newPath to pathtodesktop & thePreFlightName & ".pdf" as text # this poops the file save document 1 to file newPath #my SavePreflightToeMail(newPath as text) try tell application "Finder" to move file newPath to trash on error errmsg display dialog errmsg end try end if
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden