Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create Palm Desktop memo entry from selection' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create Palm Desktop memo entry from selection
Authored by: macman13 on Dec 11, '03 06:26:58PM
Here is an update to your script that seems to work fine for me:

set contentsTxt to the clipboard as string
set contentsTxt to «class ktxt» of (result as record)
set titleTxt to text 1 thru 20 of contentsTxt
tell application "Palm Desktop"
	activate
	try
		make new memo with properties ¬
			{title:titleTxt, contents:contentsTxt}
	on error msg
		display dialog msg
	end try
end tell

With this code, highlight the text you wish to copy and press Command-C as you copy a piece of text. Once it is on the clipboard you run the script. This actually works better for me and does not require javascript. I noticed a difference in the two scripts:

1. If I use the script with javascript I get weird characters in the memo text.

2. If I use the revised script that actually copies from the clipboard, I do not get these weird character. in fact I get an actual COPY of the text I highlited.

Safari and javascript are no longer required. Now it copies the text directly from the clipboard so any text you save to the clipboard will be turned into a memo for your palm. Granted this adds one more step to the process, but it is quick step that produces much more readable text in the Palm memo.

Thanks.
SA:)

---
\\"I can do everything on my Mac I used to do on my PC, plus alot more ...\\"
--Me

[ # ]

Create Palm Desktop memo entry from selection
Authored by: sjk on Dec 11, '03 06:52:27PM

Ahh, that works. Later I'll try adding the interactive pieces from klktrk version.

Thanks for all the contributions.



[ # ]
Create Palm Desktop memo entry from selection
Authored by: pkishor on Dec 11, '03 07:01:09PM

sweet. Ya, those weird chars do appear -- I think they are just line breaks being goofed up. Your script does add one extra step, but is more universal. Good job.,



[ # ]