Quantcast

Forums | MacLife

You are not logged in.

#1 2003-08-13 10:30 am

Former Windork
Member
From: Alabama
Registered: 2002-06-13
Posts: 1006

Privacy script problem

I've triple checked my typing on the clear Safari browser history script and it's exactly as you have it in the magazine.  However, when I try to check syntax, I'm getting a syntax error of "Expected end of line but found number" on the line "tell menu bar 1".  I'm not experienced at script writing so I have no idea how to fix this.  Help!

P.S.  This is from the September issue


Microsoft Security Patch No. Infinitum arriving soon

Offline

 

#2 2003-08-13 10:51 am

mahakali
anti-razor
From: easter egg
Registered: 2002-11-06
Posts: 5592

Re: Privacy script problem

The script runs fine on mine. It looks like you have System Events version 1.1.1 (the old one.) You'll need the latest version (can be downloaded here) as stated in the magazine.


1. Instill fear.
2. ???????? (use your imagination)
3. Profit!

Offline

 

#3 2003-08-13 11:08 am

Former Windork
Member
From: Alabama
Registered: 2002-06-13
Posts: 1006

Re: Privacy script problem

I'm having a hard time finding that.  The URL you provided isn't working for me.


Microsoft Security Patch No. Infinitum arriving soon

Offline

 

#4 2003-08-13 12:04 pm

Former Windork
Member
From: Alabama
Registered: 2002-06-13
Posts: 1006

Re: Privacy script problem

I did some digging around on the Apple site and finally found the download I needed.  The script seems to work fine except for Safari.  It didn't delete my history even after running it 3 times.


Microsoft Security Patch No. Infinitum arriving soon

Offline

 

#5 2003-08-27 12:34 pm

geoffy
Member
Registered: 2003-08-27
Posts: 1

Re: Privacy script problem

This one works for me:

tell application "Safari"
    activate
    tell application "System Events"
        tell process "Safari"
            tell menu bar 1
                click menu item "Clear History" of menu "History"
                click menu item "Empty Cache" of menu "Safari"
            end tell
        end tell
    end tell
end tell

Offline

 

#6 2003-09-22 5:56 pm

marc421
Member
Registered: 2001-11-05
Posts: 4
Website

Re: Privacy script problem

My script works but for some reason when i double click on it it launches Script Edittor and I have to hit run. I have tried all the save as options all with different results.

Is there any way to have it jsut be an icon I double click and it launches and runs?

Offline

 

#7 2003-09-23 4:29 pm

Daniel
[dp] design#
From: Melbourne, FL
Registered: 2000-11-21
Posts: 9708
Website

Re: Privacy script problem

My script works but for some reason when i double click on it it launches Script Edittor and I have to hit run. I have tried all the save as options all with different results.

Is there any way to have it jsut be an icon I double click and it launches and runs?

"Save as Application."  roll


Airman Dan
Private Pilot, Instrument Airplane Single-Engine Land
http://homepage.mac.com/dp.design/.Pictures/atat/AtAT-Banner.jpg

Offline

 

#8 2003-09-23 4:46 pm

marc421
Member
Registered: 2001-11-05
Posts: 4
Website

Re: Privacy script problem

I did that, no good. Tried all the save options.

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson