• 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
Re: Saving to desktop with TextEdit - El Capitan vs Sierra [1]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving to desktop with TextEdit - El Capitan vs Sierra [1]


  • Subject: Re: Saving to desktop with TextEdit - El Capitan vs Sierra [1]
  • From: Brian Christmas <email@hidden>
  • Date: Tue, 27 Dec 2016 15:01:49 +1100

 G’day Shane

I’ve tried ‘to’ but it does not have the same effect as ‘in’.

Saving manually as a ‘TIFF’., then dragging the tiff to Acrobat, opens the tiff as a CROPPED .pdf. All’s well. 

BUT, trying to do the same with the code below, opens the saved tiff AS A tiff, and the extra images are still intact.

I’m presuming the use of the word ‘in’ is critical, which is why I’d like to try a shellscript which might lock in the use of ‘in’. Presumably the word ‘in’ crops the image.

Regards

Santa

set the FileName to "AuburnAlumni LifetimeAchievement LARGE DIE LINE 121616_104500"
tell application "Adobe Acrobat"
activate
open file ((path to desktop as text) & FileName & ".tiff")
set saveTheName to ((path to desktop as text) & FileName)
set saveTheAcrobatFilePath to saveTheName & ".tiff"
set pathToFile to saveTheAcrobatFilePath
set theFile to pathToFile as «class furl»
set fileRef to open for access theFile with write permission
do shell script ("sleep 1")
close access fileRef
tell application "Adobe Acrobat"
tell document 1
save to theFile —< Saves as a tiff, uncropped
end tell
close every document saving no
say 1
open file saveTheAcrobatFilePath — < opens as uncropped .tiff
#  open theFile —< Same
 end tell
end tell


On 27 Dec 2016, at 10:40 am, Shane Stanley <email@hidden> wrote:
On 27 Dec 2016, at 10:32 am, Brian Christmas <email@hidden> wrote:

I use the line save in theFile as per Shane's instructions, but in Acrobat it’s changed to save of theFile.

Have you looked in Acrobat's dictionary? It doesn't support save in -- it uses save to. 

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>

Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden
  • Follow-Ups:
    • Re: Saving to desktop with TextEdit - El Capitan vs Sierra [1]
      • From: Shane Stanley <email@hidden>
References: 
 >Saving to desktop with TextEdit - El Capitan vs Sierra [1] (From: Axel Luttgens <email@hidden>)
 >Re: Saving to desktop with TextEdit - El Capitan vs Sierra [1] (From: Axel Luttgens <email@hidden>)
 >Re: Saving to desktop with TextEdit - El Capitan vs Sierra [1] (From: Brian Christmas <email@hidden>)
 >Re: Saving to desktop with TextEdit - El Capitan vs Sierra [1] (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Saving to desktop with TextEdit - El Capitan vs Sierra [1]
  • Next by Date: Re: Saving to desktop with TextEdit - El Capitan vs Sierra [1]
  • Previous by thread: Re: Saving to desktop with TextEdit - El Capitan vs Sierra [1]
  • Next by thread: Re: Saving to desktop with TextEdit - El Capitan vs Sierra [1]
  • Index(es):
    • Date
    • Thread