Re: copy command question
Re: copy command question
- Subject: Re: copy command question
- From: Shane Stanley <email@hidden>
- Date: Wed, 09 May 2001 20:51:32 -0400
On 9/5/01 5:23 PM +1000, Herb, email@hidden, wrote:
>
I am working on a script that will copy text from an Adobe
>
InDesign document into a FM Pro database (my first script ever,
>
actually) and am unable to get the selected text onto the clipboard.
>
So far it looks like this
>
>
--test script
>
--InDesign 1.52 copy text and paste to db
>
tell application "InDesign 1.5.2"
>
set mySelection to selection
>
copy
>
>
--open database
>
tell application "Finder" to open file "testdb"
>
end tell
>
>
>
i have tried making InD active for the copy like you have to with the
>
finder and that hasn't worked either. The scripting pdf from Adobe
>
lists no parameters for the copy command and am not sure what to try
>
next. Any help would be greatly appreciated....
Forget copy and paste. Try something like this:
tell application "InDesign 1.5.2"
set mySelection to contents of selection
end tell
tell application "FileMaker Pro"
tell database 1
set cell 1 of current record to mySelection
end tell
end tell
--
Shane Stanley, email@hidden