• 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
why this error under 10.2: Expected expression but found "property"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: why this error under 10.2: Expected expression but found "property"
  • From: "Fares BELHAOUAS" <email@hidden>
  • Date: Tue, 28 Aug 2007 12:25:25 -0400

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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: why this error under 10.2: Expected expression but found "property"
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Script errors with empty file reference
  • Next by Date: Re: why this error under 10.2: Expected expression but found "property"
  • Previous by thread: Revising a script that worked in Entourage for use in Apple Mail
  • Next by thread: Re: why this error under 10.2: Expected expression but found "property"
  • Index(es):
    • Date
    • Thread