Re: Accessing Stickies' data
Re: Accessing Stickies' data
- Subject: Re: Accessing Stickies' data
- From: Jim Thompson <email@hidden>
- Date: Fri, 10 Dec 2010 02:20:20 +0900
Thanks. Reading Stickies' data as text would not be a problem. I
thought initially that Stickies' file is a database file. In such
case, I thought I could get the number of records easily. Since Mr.
Thompson said it's not a database file, I didn't think I could get the
number of records or windows, which is my only objective. So I gave up.
Yours,
Jim
On Dec 10, 2010, at 2:05 AM, Deivy Petrescu wrote:
Jim
you should try before giving up....
<script>
set stickiescontents to read (POSIX file "/Users/deivy/Library/
StickiesDatabase" as alias)
stickiescontents
<\script>
On Dec 9, 2010, at 09:51 , Jim Thompson wrote:
Okay... Thanks a lot for your advice.
Hmm... I give up.
Jim
On Dec 9, 2010, at 10:32 PM, André Renault wrote:
[NSMutableData readFromFile:…]
Sent from my iPhone
On Dec 9, 2010, at 8:17 AM, Steve Thompson <email@hidden> wrote:
On 9 Dec 2010, at 04:44, Jim Thompson wrote:
And I get an error. So is there any way to access this database
file and get the number of records in it?
It's not a database file. Stickies stores the data as
NSMutableData - that is, it's a long string of characters that
Stickies parses in order to display the data within. And to
further complicate it, NSMutableData is binary data so you
couldn't, for example, grep the file for the string that marks
the end of one note and the start of another.
I'm not saying it's impossible but it's not going to be easy.
Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden
)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden
)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
Deivy Petrescu
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden