• 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
Palm Desktop & Styled text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Palm Desktop & Styled text


  • Subject: Palm Desktop & Styled text
  • From: Phi Sanders <email@hidden>
  • Date: Fri, 8 Mar 2002 20:09:34 -0500

In a message sent on Friday, 2002 March, 08 @ 9:02 AM, by Chris Page :

>The problem is that [vClip] contains styled text, and Palm Desktop
>only accepts plain text for the body property. It doesn't attempt
>to coerce other types of text, so it can't accept international text,
>either, for example. It really should be returning an error result,
>but instead it silently stops processing the initialization record
>if it encounters any problems. So, for example, if you change the
>order to {body:vBody, title:vTitle} you'll find that even the title
>doesn't get set.


Here's a PARTIAL workaround - it only works if the text on the clipboard
is actually plain text (tested in textedit using the make rich/make plain
command):

-- ==============
set vDate to (current date) as string
set vTitle to "Clipboard -" & vDate

set vClip to text of (the clipboard)

-- script will fail quietly without the following line
set vBody to (every character of vClip) as text

tell application "Palm Desktop"
create new memo with {title:vTitle, body:vBody}
end tell
-- ==============

If someone can come up with a universal way to get plain text from styled
(in 10.1.3) I'd REALLY appreciate the tip.

~Phi
_______________________________________________
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.

References: 
 >Re: Scripting Palm Desktop (From: Chris Page <email@hidden>)

  • Prev by Date: Re: First Script
  • Next by Date: Get Full Path of a Mounted Share
  • Previous by thread: Re: Scripting Palm Desktop
  • Next by thread: Scripting Palm Desktop
  • Index(es):
    • Date
    • Thread