• 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: A question on System prefs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A question on System prefs


  • Subject: Re: A question on System prefs
  • From: kai <email@hidden>
  • Date: Fri, 25 Feb 2005 02:50:03 +0000


On Fri, 25 Feb 2005 00:50:39 +0000, I wrote:

It seems to me that there are some inconsistencies here. For some panes, "preference" works, for others you need "preferences".

This works here - and appears to confirm the above:

-----------

set l to {}
set d to "com.apple.preference"
set t to read file ((path to "cach" from user domain as Unicode text) & d & "panes.cache")
set text item delimiters to d
set t to t's text items
set text item delimiters to ASCII character 134
repeat with i in t's rest
set l's end to d & i's text item 1
end repeat
set text item delimiters to {""}
set l to choose from list l with prompt "Please choose a preference pane:" OK button name "Copy"
if l is not false then tell application (path to frontmost application as Unicode text) to set the clipboard to l's item 1


-----------

---
kai

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: A question on System prefs
  • Next by Date: Running Processes on Remote machine.
  • Previous by thread: Re: A question on System prefs
  • Next by thread: Re: Creating images programmatically
  • Index(es):
    • Date
    • Thread