• 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: Script to add alias to dock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script to add alias to dock


  • Subject: Re: Script to add alias to dock
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 25 Apr 2008 15:25:12 -0400

Wow, Laine.   That's a mighty big font you got there...
On Fri, Apr 25, 2008 at 1:38 PM, Laine Lee <email@hidden> wrote:
>
>  On 4/23/08 11:41 AM, "email@hidden"
> <email@hidden> wrote:
>
>
>
>  Hello all:
>
>  I am new to the world of Apple and I have developed a script ot mount my
> network smb shares, but I would like to add an alias (for the created
> mounts) to the dock - can anyone point me in the right direction? (Google
> has not been kind using various and assorted terms)
>
>
>
>  set hojo to choose folder with prompt "Please choose a volume to add to the
> dock..." default location (((path to startup disk as Unicode text) &
> "Volumes") as alias)
>  --set trolokite to (characters 1 thru -2 of (POSIX path of hojo)) as
> Unicode text
>  set trolokite to (POSIX path of hojo) as Unicode text
>  --display dialog trolokite
>  do shell script "defaults write com.apple.dock persistent-apps -array-add
> '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>"
> & trolokite &
> "</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'"
>  do shell script "sh -c \"killall Dock\""
>
>  --
>  Laine Lee
>  _______________________________________________
>  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
>



--
Mark J. Reed <email@hidden>
 _______________________________________________
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

  • Follow-Ups:
    • Re: Script to add alias to dock
      • From: Laine Lee <email@hidden>
References: 
 >Script to add alias to dock (From: email@hidden)
 >Re: Script to add alias to dock (From: Laine Lee <email@hidden>)

  • Prev by Date: Re: Choose File Limited by File Extension OR Type ???
  • Next by Date: osacompile requires evaluation of "tell application" statements?
  • Previous by thread: Re: Script to add alias to dock
  • Next by thread: Re: Script to add alias to dock
  • Index(es):
    • Date
    • Thread