on run try set x to do shell script "defaults read com.apple.Safari DebugUsePieProgressIndicator" on error e set x to "0" end try set icn to "/Applications/Safari.app/Contents/Resources/compass.icns" as POSIX file set t to "Change Safari's progress indicator" if x is "1" then set y to button returned of (display dialog "Return Safari to its standard page load progress indicator (bar behind address)?" with icon icn with title t) if y is "OK" then do shell script "defaults write com.apple.Safari DebugUsePieProgressIndicator -bool false" end if else set y to button returned of (display dialog "Change Safari's page load progress indicator to a circular/pie indicator?" with icon icn with title t) if y is "OK" then do shell script "defaults write com.apple.Safari DebugUsePieProgressIndicator -bool true" end if end if --do shell script "defaults write com.apple.Safari DebugUsePieProgressIndicator -bool true" end run