• 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 command question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >copy command question (From: Herb <email@hidden>)

  • Prev by Date: Re: Writing large scripts
  • Next by Date: System doesn't recognizes osax(?)
  • Previous by thread: copy command question
  • Next by thread: Newbie question
  • Index(es):
    • Date
    • Thread