Since my last post here on MR:Forums I have made decent headway into my project. Basically I scrapped it XD and started over.
1. Search Entourage Items ([SMS from mobile subscriber]) *note1
2. Get Text from Entourage
3. Copy to Clipboard *note2
4. Run AppleScript
5. Get Specified Address Book Items *note3
6. Get Contact Information *note4
7. Create New Entourage Mail Message (email:my cell subject:contact found body
8. Send Outgoing Entourage Mail Message
*Note 1: I decided instead of sending an email from my phone to send a txt
*Note 2: For some reason I need to copy it to clipboard in order to pass it to Run AppleScript. I tried set mailMSG to (input) and it shows up in the scripts however I end up receiving an error later on.
*Note 3: Now somewhere between note 3 and 4 is where my issue is coming from. My applescript will find the contact I am looking for. When it passes it to the next step the next step shows the persons name in the results panel of that step. However, what it does not seem to do is actually get that contact. None of the contact information will be passed to the next step.
If you want to see my exact workflow follow this link: http://dl.dropbox.com/u/1216523/find contact.zip
I'm so close. Push me in the right direction guys.
Model: Mac MINI
AppleScript: 2.2.1
Browser: Safari 531.21.10
Operating System: Mac OS X (10.5)
1. Search Entourage Items ([SMS from mobile subscriber]) *note1
2. Get Text from Entourage
3. Copy to Clipboard *note2
4. Run AppleScript
Code:
on run {input, parameters}
set mailMSG to (the clipboard as text)
set bodyMSG to text ((offset of "~!@" in mailMSG) + 3) thru -1 of mailMSG
set thePerson to text ((offset of "*&^" in bodyMSG) + 3) thru -2 of bodyMSG
set input to thePerson
return input
end run
6. Get Contact Information *note4
7. Create New Entourage Mail Message (email:my cell subject:contact found body
8. Send Outgoing Entourage Mail Message
*Note 1: I decided instead of sending an email from my phone to send a txt
*Note 2: For some reason I need to copy it to clipboard in order to pass it to Run AppleScript. I tried set mailMSG to (input) and it shows up in the scripts however I end up receiving an error later on.
*Note 3: Now somewhere between note 3 and 4 is where my issue is coming from. My applescript will find the contact I am looking for. When it passes it to the next step the next step shows the persons name in the results panel of that step. However, what it does not seem to do is actually get that contact. None of the contact information will be passed to the next step.
If you want to see my exact workflow follow this link: http://dl.dropbox.com/u/1216523/find contact.zip
I'm so close. Push me in the right direction guys.
Model: Mac MINI
AppleScript: 2.2.1
Browser: Safari 531.21.10
Operating System: Mac OS X (10.5)