• 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 16:02:02 +1100

Thanks Shane.

No, tried that. The tiff saves as a file with a crop box and 3 extra images outside of it, using ‘SAVE AS’.

I’ve resorted to the GUI,  which I hate doing, but my scripting life seems to be one of constantly doing so. So slow.

This works; one single image, in one crop box., and it opens as a .pdf, which I can now expand and add 4 text boxes to, two of them with barcodes.

Thanks anyway.

Santa

set FileName to "AuburnAlumni LifetimeAchievement LARGE DIE LINE 121616_104500"
tell application "Adobe Acrobat"
activate
open file ((path to desktop as text) & FileName & ".pdf")
set saveTheName to ((path to desktop as text) & FileName)
tell application "System Events" to tell process "AdobeAcrobat"
keystroke "s" using {command down, shift down}
do shell script ("sleep 0.2")
click pop up button 1 of group 2 of window 1
do shell script ("sleep 0.2")
keystroke "Desktop" & return
do shell script ("sleep 0.2")
click pop up button 1 of group 1 of window 1
do shell script ("sleep 0.2")
click menu item "TIFF" of menu 1 of pop up button 1 of group 1 of window 1
do shell script ("sleep 0.4")
click button "Save" of window 1
do shell script ("sleep 0.4")
end tell


tell application "Adobe Acrobat"
activate
set theFile to ((path to desktop as text) & FileName & ".tiff")
close every document saving no
do shell script ("sleep 0.4")
  open file theFile
end tell
tell application "Finder" to move file theFile to trash
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
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