Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 8 of 8
  1. #1
    TME520 is offline Registered User
    Join Date
    May 2003
    Location
    Paris, FRANCE
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question A lame question from a newbie

    Sorry for asking such a lame question, but how can I get a list of system attributes available with APPLESCRIPT ? I took a look at several websites, but I found nothing...please help !

  2. #2
    DeltaMac is offline Tech
    Join Date
    Jun 2001
    Location
    Dover, DE
    Posts
    7,697
    Thanks
    3
    Thanked 629 Times in 619 Posts
    what additional info do you need to view, in addittion to what Apple System Profiler gives you?
    Serendipity is a lucky guess !

  3. #3
    adambyte's Avatar
    adambyte is offline Registered User
    Join Date
    Dec 1969
    Location
    California... state of confusion
    Posts
    416
    Thanks
    0
    Thanked 0 Times in 0 Posts
    While you're in the Script Editor, choose "Open Dictionary" from the "File" menu. Then, choose the Application you wish to script, and click "open." There you go. Have fun.

    Enjoy your AppleScript!
    -Adam S ... PowerBook G4 (Mac OS X... the latest version, whatever it is, I've got it, dangit) and original iPod (iLove music, therefore iLove iPod)
    <shamelessplug>http://www.geocities.com/adambyte</shamelessplug>

  4. #4
    Giaguara's Avatar
    Giaguara is offline Chmod 760
    Join Date
    Nov 2002
    Location
    ~
    Posts
    9,534
    Thanks
    18
    Thanked 191 Times in 186 Posts
    dictionary is a good place to start.
    but don't forget http://www.apple.com/applescript/ either
    Mac Mini Server | MacBook Pro | iPhone | Other Macs + a bunch of iPods, Newtons and other toys
    Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do.
    ~ Samuel Clemens | G's corner | Photos | @ Plus+ and Game Center

  5. #5
    TME520 is offline Registered User
    Join Date
    May 2003
    Location
    Paris, FRANCE
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanx for your replies, but I think I should give you an example of what I am searching for. Look :

    tell application "Finder"

    end tell

  6. #6
    TME520 is offline Registered User
    Join Date
    May 2003
    Location
    Paris, FRANCE
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanx for your replies, but I think I should give you an example of what I am searching for. Look :

    tell application "Finder"
    set OSVersion to system attribute "sysv"
    end tell

    How can I have a list of the others system attributes like SYSV ?

  7. #7
    anarchie is offline NSCoder
    Join Date
    Oct 2002
    Posts
    198
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.apple.com/applescript/rel...es/181OSX.html

    The system attribute command has been extended to provide information on the user's environment variables. These are set up at user login time and cannot be altered. If the direct parameter to system attribute is a four-character Gestalt code, it is executed as in Standard Additions 1.7; if not, it attempts to get an environment variable by that name, returning either the value of the variable or an empty string. (Note that system attribute now will not fail with an error; it simply returns an empty string.) If called with no parameters, system attribute returns a list of all currently-defined environment variables.
    The gestalt selectors are listed here:

    http://developer.apple.com/documenta...stalt_Manager/

  8. #8
    TME520 is offline Registered User
    Join Date
    May 2003
    Location
    Paris, FRANCE
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanx a lot !

    Thank you for your help ! Now, I'll be able to become an APPLESCRIPT Wizard ;-)

 

 

Similar Threads

  1. newbie question: Samba Linux Server
    By filter in forum Unix & X11
    Replies: 0
    Last Post: November 15th, 2003, 12:45 PM
  2. Replies: 4
    Last Post: January 7th, 2003, 09:48 AM
  3. unix newbie question
    By jmmistrot in forum Mac OS X System & Mac Software
    Replies: 3
    Last Post: October 12th, 2001, 01:49 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •