Adium Applescript development - newb help
Posted: Sat Oct 22, 2005 6:32 pm
Hey, I've been trying to make an applescript that will open the msn member profile of your current contact when you type /mem. Currently it works when running the script in applescript editor but nothing happens when I type /mem in Adium. I copied a working package so it looks like this:
Info.plist looks like this:
And the important part of the script looks like this:
Anyone have any ideas on how to make this work? Thanks in advance...
Code: Select all
MSNProfile.Adiumscripts
|__Contents
|__Info.plist
|__Resources
|__mem.scpt
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleGetInfoString</key>
<string>MSN Profile</string>
<key>CFBundleIdentifier</key>
<string>com.adiumx.msnprofile.scripts</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>1.0</string>
<key>CFBundleName</key>
<string>MSN Profile</string>
<key>CFBundlePackageType</key>
<string>AdIM</string>
<key>Scripts</key>
<array>
<dict>
<key>File</key>
<string>mem</string>
<key>Keyword</key>
<string>/mem</string>
<key>Title</key>
<string>MSN Profile</string>
</dict>
</array>
<key>Set</key>
<string>MSN Profile</string>
</dict>
</plist>
Code: Select all
on substitute()
tell application "Adium"
activate
tell the active chat of the first interface controller
set member to ID
end tell
end tell
set member to make_formatted(member, "MSN.", "")
tell me to do shell script "open http://members.msn.com/" & member
end substitute