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

Clipboard questions


  • Subject: Clipboard questions
  • From: Dr Bill Kelly <email@hidden>
  • Date: Sun, 31 Aug 2003 14:40:44 +1000

Hi

I posted this to the Applescript Studio list but was advised to post it here as well.


it will come as no surprise to you from the below that I am new to AS. Having got that off my chest, my question is as follows:

We are 4D developers of medical practice applications that run on OS9, OSX and Windows. Our Mac clients are migrating fairly rapidly to OSX which leads to my problem - spell checking. 4D is a carbon app that doesn't give access to OSX services so one can't use the spell service. I had the idea of getting 4D copy the styled text in 4D Write, call an AS application which pastes the styled text into a text field then runs the spelling service to correct the text. At completion, the user would press a button in the AS app that copies the corrected text and then sends an AppleEvent back to 4D which then pastes the corrected text, still styled hopefully, back into 4D Write.

I can get the AS app on startup to paste plain text with the following code

on awake from nib theObject
tell the window of theObject
if the name of theObject is "text_fld" then
set the contents of text view "text_fld" of scroll view "text_fld" to the clipboard
end if
end tell
end awake from nib

Question 1. I can copy and paste styled text manually into the text field. How do I do it programmatically?

Q2. Is there a programmatic way of getting the spelling service to check the pasted text?

Q3. Is copying the corrected styled text is the reverse of the answer to Q1?



Cheers,

Bill
---------------------------------------------------------------
Dr Bill Kelly
DoctorWare - Developers of SmartRooms
Medical Practice Management Software for Macintosh & Windows
PO Box 2126, East Ivanhoe VIC Australia 3079
Intl phone: 61-3-9499-4622 fax: 61-3-9288-4487
email: email@hidden
---------------------------------------------------------------
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Renaming files in Finder: why so slow?
  • Next by Date: Re: error 10
  • Previous by thread: Re: error 10
  • Next by thread: Another weird happening in Smile
  • Index(es):
    • Date
    • Thread