Re: Trying to export memos in Palm Desktop 4.0
Re: Trying to export memos in Palm Desktop 4.0
- Subject: Re: Trying to export memos in Palm Desktop 4.0
- From: Chris Page <email@hidden>
- Date: Thu, 15 May 2003 07:39:14 -0700
On Thursday, May 15, 2003, at 00:04 US/Pacific, Mike Galke wrote:
export: Export addresses, to dos, and memos
export type class -- the type of items to export (address, to do,
or memo)
into file specification -- the file into which to export
A 'file specification' is a standard object that specifies the name and
location of a file, folder, or volume. In this case, Palm Desktop
exports the data to a file, so you must give it the name and location
of the file.
A file specification consists of the term 'file' and a pathname. For
example:
file "Macintosh HD:Users:Shared:My File"
The 'export' command isn't very flexible, since it won't let you select
subsets of data to export nor the format for the exported data. In
contrast, if you select the "File:Export..." command in Palm Desktop,
you'll see a dialog with a host of options. 'export' simply exports all
records and all columns of the selected type, and it exports to dos and
memos as "Palm Desktop" format. Addresses are exported as "Tab &
Return". See the online Help for an explanation of these formats.
In Palm Desktop 4.1 I removed support for 'export' altogether, partly
because I didn't have time to update it to work with the new scripting
implementation, and partly because of its lack of flexibility. Instead
of using 'export' I recommend you simply get the properties of the
objects you're interested in and store their values however you like.
This is much easier to do with 4.1 than in earlier versions because it
supports 'whose'.
I recommend you update to 4.1, especially if you're going to be writing
scripts for it, because I completely rewrote the scripting support and
it's much better in general.
I've written a couple of example scripts that illustrate saving memos
into a text file and generating an HTML page with every memo. You can
find them on my .Mac website or my iDisk, in the "Palm Desktop 4.1
AppleScripts" folder:
<
http://homepage.mac.com/chrispage/>
<
http://idisk.mac.com/chrispage-Public>
If you just want to back up your data, it might be simplest to write a
script that makes a backup copy of your user data file. This will also
give you the best guarantee that you can restore your data without
losing any information. See the Palm Desktop documentation for the
location of the User Data file for a given HotSync User.
--
Chris Page - Software Wrangler - Palm, Inc.
You need a MacHack Best Hack 2002 CD. Loads of source code and hacks!
<
http://www.hax.com/BestHackCDForm.html?cp>
_______________________________________________
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.