Re: How to direct text output to a window
Re: How to direct text output to a window
- Subject: Re: How to direct text output to a window
- From: "Stranathan, Dan" <email@hidden>
- Date: Mon, 17 Mar 2008 08:54:07 -0500
- Acceptlanguage: en-US
- Thread-topic: How to direct text output to a window
Skeeve wrote:
> Two solutions occur to me.
>
> First:
>
> [...]
>
> Second:
>
> [...]
>Third... Uhmmm... Three solutions occure to me (Nobody expects the
>spanish inquisition!)
>
>tell application "System Events"
> set foo to name of login items
>end tell
>set text item delimiters to return
>display dialog "Here are your login items" default answer (foo as text)
>
>This last one has the advantage, that you can copy & paste the result or
>parts thereof.
Great ideas guys, thanks for the input. I'm experimenting now. One major issue that perhaps you guys have ran into before:
For some reason, only the local login items show up in the list of log intems generated from the scripts. MCX-based login items (in my case - network mounts) show up as generic "msng" or "missing value". I was horping to see something more like "smb://server/share" (or at least "share") For some reason my AppleScript cant get the MCX login items via the System Events. Any ideas why not?
The goal of my project is to be able to show which network volumes are mounted at login via MCX. I'm not concerned about the start item apps such as the iTunes Helper, the Entourage Daemon, etc. I'm mainly trying to capture the names of the login items that are AFP and SMB network volumes. Eventually my AppleScript will (hopefully) show users what volumes they mount, but will also give the user the ability to re-mount them when they are on the road and trying to connect via VPN (this way they can remap their network drives in 1 fell swoop rather than picking them manually each time). So far I havent had much luck getting OS X to reveal the names/paths of the volumes via AppleScript & System Events. Hmmmm...
_______________________________________________
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