Re: Copy text from pdf to TextEdit
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