• 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: Copy text from pdf to TextEdit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy text from pdf to TextEdit


  • Subject: Re: Copy text from pdf to TextEdit
  • From: Guido Tangorra <email@hidden>
  • Date: Thu, 19 Jun 2014 12:00:38 +0200

Thanks for the hint but I'm a newbie to Applescript and I've never used SMILE...
For starters I have wrote this piece of code, that use Skim application to extract questions as TIFF image.
But is a mess set the cropBounds properly...

tell application "Skim"
    tell document 1
        set pageBounds to (get bounds for page 2)
        # set {yTop, yBottom, xRight, xLeft} to get bounds for page 1
        set {rectWidth, rectHight} to {100, 100}
        # set cropBounds to {xLeft, yHeight, xLenght, yBottom}
        --set cropBounds to {item 1 of pageBounds, ((item 2 of pageBounds) / 17), item 3 of pageBounds, item 4 of pageBounds}
        set cropBounds to {0, (154 + 50), item 3 of pageBounds, (154)}
        grab page 2 for cropBounds as TIFF picture
    end tell
    set the clipboard to result
end tell
tell application "TextEdit"
    activate
    make new document
end tell
tell application "System Events"
    tell process "TextEdit"
        keystroke "v" using command down
        keystroke return
    end tell
end tell

 _______________________________________________
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: Copy text from pdf to TextEdit
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: Informal poll
  • Next by Date: Re: Informal poll
  • Previous by thread: Re: Copy text from pdf to TextEdit
  • Next by thread: Re: Copy text from pdf to TextEdit
  • Index(es):
    • Date
    • Thread