• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get all IDs of an object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get all IDs of an object


  • Subject: Re: How to get all IDs of an object
  • From: Steve Thompson <email@hidden>
  • Date: Thu, 21 Mar 2013 21:20:32 +0000

"Every" is your friend:

tell application "Microsoft Outlook"
get name of every exchange account
--> {"Work"}
get plain text content of every signature
--> {"-- 
"}
end tell

Steve


On 21 Mar 2013, at 21:08, Jeff Hanlon <email@hidden> wrote:

I've been working with Outlook 2011 and have been trying to use AppleScript to get and set a few things like Signatures, Server Names, etc.  I'm using the Microsoft Outlook.sdef dictionary in AppleScript Editor to try and figure things out but my very basic knowledge of AppleScript is slowing me down.

I figured out for example how to get the name of the exchange account by referring to it by id number.
get the name of exchange account id 1

I've also done this with Signatures.
get plain text content of signature id 3

What I would like to know is how would I find out ALL of the account or signature ids?  Is that possible?
For example when you delete a signature it doesn't remove that id.  So if you add a bunch of signatures and then delete them, the next new signature might have an id of like 12.  How could I find out the last signature id or how could I view all of the signatures a user might have?

Is there a way to view all of the ids?  Are the ids stored in an array or something?

Thanks,

Jeff
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
References: 
 >How to get all IDs of an object (From: Jeff Hanlon <email@hidden>)

  • Prev by Date: How to get all IDs of an object
  • Next by Date: Re: How to get all IDs of an object
  • Previous by thread: How to get all IDs of an object
  • Next by thread: Re: How to get all IDs of an object
  • Index(es):
    • Date
    • Thread