Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

why this error under 10.2: Expected expression but found "property"



Hi everybody,

I am trying to run this apple-script under 10.2 and 10.3, but I have an error that I have not under 10.4

the error is:

Expected _expression_ but found "property"

the script is:

--reset the value of the Home Page
set HomePage to "http://www.google.com"
set pListpath to "/Users/User1/Library/Preferences/" & "com.apple.internetconfigpriv.plist "
tell application "System Events"
        tell property list file pListpath
                get value of property list item "WWWHomePage"
                if value of property list item "WWWHomePage" is HomePage then
                        return
                else
                        set value of property list item "WWWHomePage" to HomePage
                end if
        end tell
end tell

does anyone know why ?

Thank you all.

--
Fares
Integration New Media
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.