• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: Michael Watson <email@hidden>
  • Date: Sun, 22 Apr 2007 14:31:51 -0400

As Finlay says, it's not particularly easy to do--AppleScript abstracts it away entirely. You could always wrap the AppleScript way in a Cocoa method and have the AS mojo return the POSIX path to the picture file.


-- m-s


On 22 Apr, 2007, at 07:53, Marco Ippoliti wrote:

Hi,

I need a cocoa mean to get the path of the picture of the current user (picture used in the login panel, assigned in accounts preferences and also used by other applications e.g. ichat, addressbook and so on).

In AS exists

tell application "System Events"
	get the picture path of the current user
end tell

so I suspect that should exist in cocoa as well, but I cound not find any reference in documentation nor with google searches.

Note that acessing this info via AB API or similar, as some past mails in this list may refer to, is not a good idea since addressbook could have different or worse a not yet inizialized picture.

Thank you for pointing me in the right direction.

M.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
40bungie.org


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >(no subject) (From: Marco Ippoliti <email@hidden>)

  • Prev by Date: Re: NSOpenPanel -runModalForDirectory:file:types: won't select file
  • Next by Date: Table column bindings question
  • Previous by thread: Re: (no subject)
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread