12,297
edits
mNo edit summary |
|||
Line 27: | Line 27: | ||
on perform action for p with e | on perform action for p with e | ||
set theNumberInAddressBook to value of e | set theNumberInAddressBook to value of e | ||
set amtsholung to true | |||
set theNumberInAddressBook to theNumberInAddressBook's words as string | set theNumberInAddressBook to theNumberInAddressBook's words as string | ||
set lengthOfNumber to length of theNumberInAddressBook | set lengthOfNumber to length of theNumberInAddressBook | ||
Line 48: | Line 49: | ||
if character -5 of theFormattedNumber is "8" then | if character -5 of theFormattedNumber is "8" then | ||
set theNumberToBeDialed to characters -1 thru -4 of theFormattedNumber | set theNumberToBeDialed to characters -1 thru -4 of theFormattedNumber | ||
set amtsholung to false | |||
set | |||
end if | end if | ||
end if | end if | ||
end ignoring | end ignoring | ||
if amtsholung is true then | |||
-- the following line adds a 0 to get the outside line = “Amtsholung” | |||
set theNumberToBeDialed to "0" & theFormattedNumber | |||
end if | |||
tell application "Safari" | tell application "Safari" | ||
activate | activate | ||
Line 76: | Line 79: | ||
Known Bugs: | Known Bugs: | ||
# browser window opens and resizes | # browser window opens and resizes | ||
# <s>stopped working after internal call fix</s> fixed, works again | |||
# <s>University numbers like +49 3643 583872 will be called externally, that means it will cost money! (surprisingly the cisco phone system isn't that smart to correct that internally)</s> fixed | # <s>University numbers like +49 3643 583872 will be called externally, that means it will cost money! (surprisingly the cisco phone system isn't that smart to correct that internally)</s> fixed | ||
# <s>doesn't work with phone number which start like 0049...., (0049), (49)</s> fixed | # <s>doesn't work with phone number which start like 0049...., (0049), (49)</s> fixed |