Re: Accessing Stickies' data
Re: Accessing Stickies' data
- Subject: Re: Accessing Stickies' data
- From: Deivy Petrescu <email@hidden>
- Date: Thu, 09 Dec 2010 12:05:21 -0500
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