Marketcircle    Forums  Hop To Forum Categories  Extending Daylite  Hop To Forums  Scripting    AppleScript Examples
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Apprentice
Posted
I'm disappointed with examples of AppleScript/FScript that I've been able to find for DayLite. Although FScript may be a more powerful language, it seems limited in its ability to interact with other programs. Most of the programs I use on the Mac are AppleScriptable and come with great examples of how to use the built-in AppleScript support. Because of this, it is easy to build powerful workflows with Automator.

I'm trying to use AppleScript to create a new note/incoming call/outgoing call based on a phone number that I supply via AppleScript. I'd like to be able to attach the note to the contact with that phone number.

Does anyone have an example of a script that does something similar? Has anyone been able to build any interesting workflows with Automator for DayLite?

Thanks,

Brad
 
Posts: 3 | Location: Ottertail, MN | Registered: December 06, 2006Reply With QuoteEdit or Delete MessageReport This Post
AJ
Marketcircle Team
Picture of AJ
Posted Hide Post
Hi Brad,

You should be able to achieve the same results as in other apps. The trick is to pass the basic types. For example, if you use F-Script to grab the 'ObjectContext', that object will not coerce properly into an AppleScript object, but if you get the data using F-Script, then it should work. Essentially any 'leaf' data should work. For example, Contact will not work, but firstnane, lastname etc... will work.

The following objects are coerced properly:
  • NSDictionary
  • NSNumber
  • NSData
  • NSString
  • NSArray


When it comes down to it, all data in Daylite is one of those 5 things and mostly NSString or NSNumber.
 
Posts: 866 | Location: Toronto | Registered: May 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
Apprentice
Picture of John Williams
Posted Hide Post
I have also been challenged to find ways of automating Daylite into my personal information workflow and have used the XML weblead procedure in the past (creating my own XML list from an Excel spreadsheet.)

Initial glance at F-script cured me of the desire to learn (another) scripting language and Daylite does not have a useful Applescript dictionary although I love the power Daylite provides in contact management.

So, using the UI scripting tools in Mac OSX 10.3 and higher, I wrote an Applescript that takes contact information from a single line in Excel, then automates the manual entry of that info into the New Contact window.

Pretty it ain't but work it does.

Here's the link:
NewDayliteContact Applescript
 
Posts: 1 | Location: Atlanta GA USA | Registered: March 17, 2007Reply With QuoteEdit or Delete MessageReport This Post
Apprentice
Posted Hide Post
Thanks, John for your example. AJ, we need some real world examples. I posted this request over a year ago and am no closer to a solution.

Daylite REALLY needs AppleScript integration. I just don't have the time to learn another scripting language to use for this single application.

Having AppleScript (and Automator) support would make it easy to build workflows with other applications.

Do you have any example AppleScript/F-Script scripts that create a note or contact in Daylite and allow you to modify that note/contact?

Thanks,

Brad



quote:
Originally posted by Brad Anderson:
I'm disappointed with examples of AppleScript/FScript that I've been able to find for DayLite. Although FScript may be a more powerful language, it seems limited in its ability to interact with other programs. Most of the programs I use on the Mac are AppleScriptable and come with great examples of how to use the built-in AppleScript support. Because of this, it is easy to build powerful workflows with Automator.

I'm trying to use AppleScript to create a new note/incoming call/outgoing call based on a phone number that I supply via AppleScript. I'd like to be able to attach the note to the contact with that phone number.

Does anyone have an example of a script that does something similar? Has anyone been able to build any interesting workflows with Automator for DayLite?

Thanks,

Brad
 
Posts: 3 | Location: Ottertail, MN | Registered: December 06, 2006Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

Marketcircle    Forums  Hop To Forum Categories  Extending Daylite  Hop To Forums  Scripting    AppleScript Examples

© Copyright 2006 Marketcircle Inc. All rights reserved.