Applescript: set display name: doesn't work
Posted: Sat May 07, 2005 11:54 am
Hello
Some time ago I made an Applescript that changes the name of every account.
it didn't work and I had been told it would probably work in .8
Still, it doesn't work. Is there any news on this? Is it supposed to work?
I tried with the different variants of the display name (like long display name, UID (probably not supposed)
Since every account class has the list object property, I assume I can do what I'm trying to do...
If it's not doable, will this be on the todo list or not?
Some time ago I made an Applescript that changes the name of every account.
it didn't work and I had been told it would probably work in .8
Still, it doesn't work. Is there any news on this? Is it supposed to work?
I tried with the different variants of the display name (like long display name, UID (probably not supposed)
Since every account class has the list object property, I assume I can do what I'm trying to do...
If it's not doable, will this be on the todo list or not?
Code: Select all
on substitute(var)
tell application "Adium"
if isset(var) then
set newname to var
else
set ldn to display name of item 1 in accounts -- take name of first account
display dialog "Give a new name" & var default answer ldn & return buttons {"Cancel", "Change Name"}
set newname to {text returned of result} -- remember answers
end if
set display name of every item in accounts to newname -- remember new name
end tell
end substitute