• 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: SMB 10.4 and 10.5 -- How To
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SMB 10.4 and 10.5 -- How To


  • Subject: Re: SMB 10.4 and 10.5 -- How To
  • From: Philip Aker <email@hidden>
  • Date: Wed, 25 Jun 2008 09:27:33 -0700

On 08-06-25, at 08:48, email@hidden wrote:

Please feel free to let me know if there is a better way to do this. I have about four days of Apple scripting experience spread out over four months so my skills are not the greatest.

Hi Charles,

In Mac OS X, 'whoami' is marked as obsolete and replaced by `id -un`.

The AppleScript call is:

	short user name of (system info)

however on 10.4 'system info' may hang.  It's reliable on 10.5.


Another way of getting the desktop folder path is:

	POSIX path of (path to desktop folder from user domain)

Use this last call outside of a Finder 'tell' block.


Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
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: 
 >SMB 10.4 and 10.5 -- How To (From: email@hidden)

  • Prev by Date: SMB 10.4 and 10.5 -- How To
  • Next by Date: Re: Applescript localization support
  • Previous by thread: SMB 10.4 and 10.5 -- How To
  • Next by thread: Tell Safari to Download pdf?
  • Index(es):
    • Date
    • Thread