Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

Photo

Is AppleScript Dictionary missing 'stack'?


  • Please log in to reply
8 replies to this topic

#1 David33409

David33409

  • Pip
  • Title: Member
  • Group: Members
  • 48 posts

Posted 25 June 2012 - 06:30 PM

I'm new to Evernote development. I did notice that the AppleScript dictionary for Evernote appears to missing the 'stack' object. How do we access 'stacks' using AppleScript?

Thank you in advance for your time and consideration.

David
Give before you get. When you get, pay it forward. You make a living by what you get....you make a life by what you give. - Sir Winston Churchill

#2 Julien Boedec

Julien Boedec

  • Title: Browncoat
  • Group: Evernote Employee
  • 407 posts

Posted 25 June 2012 - 09:08 PM

The stack is assigned to the notebook object. By accessing a notebook, you should be able to know the associated stack.

#3 David33409

David33409

  • Pip
  • Title: Member
  • Group: Members
  • 48 posts

Posted 25 June 2012 - 09:29 PM

What I'm trying to do is find the stacks and access the notebooks within the stack and I'm also trying to assign a notebook to a stack within AppleScript. I don't see a 'stack' object nor do I see a 'stack' attribute/property for a notebook object.

Maybe you can help me.

1) Given a notebook, how do I determine what stack it is in using AppleScript?
2) Given a stack, how do I get all the notebooks within that stack using AppleScript?
3) Given a notebook, how do I add it to a stack using AppleScript?

Thank you for your time.

David
Give before you get. When you get, pay it forward. You make a living by what you get....you make a life by what you give. - Sir Winston Churchill

#4 David33409

David33409

  • Pip
  • Title: Member
  • Group: Members
  • 48 posts

Posted 25 June 2012 - 09:36 PM

UPDATE: Within AppleScript I traversed all my notebooks. The stacks do not show up in my list. I also tried to determine if any given notebook is in a stack without success.

According to the documentation I have, a "notebook" object can be contained with the "application" object, contains "note" objects and has the following properties/attributes:
  • name
  • type
  • default

I see no way to determine the stack from this information.
Give before you get. When you get, pay it forward. You make a living by what you get....you make a life by what you give. - Sir Winston Churchill

#5 Julien Boedec

Julien Boedec

  • Title: Browncoat
  • Group: Evernote Employee
  • 407 posts

Posted 26 June 2012 - 04:00 PM

Sorry about the confusion, the stack is associated to the notebook in our Cloud API but isn't accessible using AppleScript. If you need to access the stacks, you might want to take a look at our full API.

#6 David33409

David33409

  • Pip
  • Title: Member
  • Group: Members
  • 48 posts

Posted 26 June 2012 - 04:05 PM

Sorry about the confusion, the stack is associated to the notebook in our Cloud API but isn't accessible using AppleScript. If you need to access the stacks, you might want to take a look at our full API.


Hi Julien. The good news is I'm not crazy. :) When will EN add this functionality to AppleScript? Any idea of a time frame?

Thank you
Give before you get. When you get, pay it forward. You make a living by what you get....you make a life by what you give. - Sir Winston Churchill

#7 Julien Boedec

Julien Boedec

  • Title: Browncoat
  • Group: Evernote Employee
  • 407 posts

Posted 26 June 2012 - 07:41 PM

I don't have any information concerning an eventual update. Will keep you posted here as soon as I know.

#8 David33409

David33409

  • Pip
  • Title: Member
  • Group: Members
  • 48 posts

Posted 26 June 2012 - 08:27 PM

Thank you. I could definitely use it :)
Give before you get. When you get, pay it forward. You make a living by what you get....you make a life by what you give. - Sir Winston Churchill

#9 ScottN57

ScottN57

  • Pip
  • Title: Member
  • Group: Members
  • 3 posts

Posted 08 March 2013 - 03:58 PM

Sorry about the confusion, the stack is associated to the notebook in our Cloud API but isn't accessible using AppleScript. If you need to access the stacks, you might want to take a look at our full API.

 Has there been any progress on adding the Stack attribute for notebooks within AppleScript? It would be very helpful for a number of projects I'm working on at the moment.  Organizing large numbers of notebooks into stacks manually is painful.

 

Thanks!

Scott






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote