• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Perplexed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Perplexed?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: How do IO loop short movie
  • Next by Date: Re: Perplexed?
  • Previous by thread: Re: How do IO loop short movie
  • Next by thread: Re: Perplexed?
  • Index(es):
    • Date
    • Thread