Re: Why it doesn't work?
Re: Why it doesn't work?
- Subject: Re: Why it doesn't work?
- From: Johnny AppleScript <email@hidden>
- Date: Wed, 06 Aug 2003 18:07:15 -0600
On 03/08/06 3:52 PM, "Marcus Rodrigues" <email@hidden> wrote:
>
I did all I could to make this work, but to no avail..
>
>
Can someone read this to see if there is any BIG error in my code?
>
>
The goal is to display a dialog in a remote machine, and, depending on
>
the button returned, send an e-mail to me with the answer.
>
>
It works fine in my machine, but when I add the "remote machine code"
>
it fails.
I couldn't get your mail code to compile and run even locally, and I assume
it has to be email in reply to your work, but I will offer this up anyway:
property carriage_return : return as text
property data : (current date) as string
set theRemoteMachine to "eppc://192.200.9.79"
my theScript(theRemoteMachine)
on theScript(theRemoteMachine)
using terms from application "Finder"
tell application "Finder" of machine theRemoteMachine
activate
set theResult to the button returned of (display dialog "Jose,
parabC)ns pelo teu AniversC!rio.
Tomara que tu seja muito feliz na tua vida e no teu trabalho
sempre
progredindo e aprendendo cada vez mais. Esta mensagem C) um AppleScript
que eu programei em 01 de agosto de 2003
e agendei para execuC'C#o no iCal" buttons {"Gostei, brigadu",
"Achei
idiota..."})
my localDialog(theResult)
end tell
end using terms from
end theScript
on localDialog(theResult)
display dialog theResult
end localDialog
>
>
Here is the code and thx for any help:
>
>
>
property carriage_return : return as text
>
property data : (current date) as string
>
using terms from application "Finder"
>
tell application "Finder" of machine "eppc://192.200.9.79"
>
activate
>
set theResult to the button returned of (display dialog "Jose,
>
parabC)ns pelo teu AniversC!rio.
>
Tomara que tu seja muito feliz na tua vida e no teu trabalho sempre
>
progredindo e aprendendo cada vez mais. Esta mensagem C) um AppleScript
>
que eu programei em 01 de agosto de 2003
>
e agendei para execuC'C#o no iCal" buttons {"Gostei, brigadu", "Achei
>
idiota..."})
>
if theResult is "Gostei, brigadu" then
>
end using terms from
>
using terms from application "Mail"
>
tell application "Mail" of machine "eppc://192.200.9.79"
>
activate
>
set newMessage to make new outgoing message with properties
>
{visible:true, subject:"Resposta da Jose", content:"Gostei!!!"}
>
tell newMessage to make new to recipient at end of to recipients
>
with properties {address:"email@hidden"}
>
send newMessage
>
end tell
>
else
>
tell application "Mail" of machine "eppc://192.200.9.79"
>
activate
>
set newMessage to make new outgoing message with properties
>
{visible:true, subject:"Resposta da Jose", content:"Naum gostei =-("}
>
tell newMessage to make new to recipient at end of to recipients
>
with properties {address:"email@hidden"}
>
send newMessage
>
end tell
>
end if
>
end tell
>
end using terms from
>
>
>
>
o#? Marcus Rodrigues o#?
>
iBook 600 - Combo - Jaguar
>
CC4nsul do Brasil Apple Clube - Caxias do Sul
>
Moderador BAC-Macusers
>
ichat: marcusrodrigues
>
mailto:email@hidden
>
http://homepage.mac.com/marcusrodrigues
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.