Monday, December 11, 2017

#1 2002-01-31 01:16:47 pm

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Questions of most silent volume in X and more...

This script I found very useful in 9, but now that I'm in X, I have noticed the volume can go lower than 0.03. I was wondering what that volume level is, and if it is possible the script could detect if I'm in 9 or X and then apply the proper 0.03 and the smallest OS X volume variables. I also have another question.... read on please!
property defaultButton : "Mute" set SV to display dialog ¬
"What would you like to set the volume to?" buttons {"Medium", "Whisper", "Mute"} ¬
default button defaultButton if button returned of SV = "Medium" then
set volume 3.5
set defaultButton to "Mute" end if if button returned of SV = "Whisper" then
set volume 0.03
set defaultButton to "Mute" end if if button returned of SV = "Mute" then
set volume 0
set defaultButton to "Medium" end if beep
My next question... Also, is there a way I can add an "edit" button to another script of mine that will open it in TextEdit? Here is that script:
on run {}
try
set fid to open for access file ((path to system folder as string) & "SS ?í:SS File")
set r to read fid
close access fid
on error msg
try
close access fid
end try
display dialog msg buttons {"Cancel"} default button 1 with icon note
end try
set r to «event WaynTKii» r given «class SEPl»:return
set n to some item of r
set dd to display dialog n buttons {"Cancel", "Edit", "More"} default button 3 giving up after 15
if button returned of dd = "More" then run
if button returned of dd = "Edit" then tell application "TextEdit"
open ((path to system folder as string) & "SS ?í:SS File")
end tell end run
Because I'm in X, is there a way to have it automatically remember where my SS file is? I don't want to keep in within System folders like I did in 9. I want to keep it on my X partition. Thanks for the help!


One mans trash is another mans treasure


Filed under: TextEdit

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)