How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Mike Your Own Question

Mike
Mike, Mac Medic
Category: Mac
Satisfied Customers: 8798
Experience:  Over 20 years IT experience with Apple computers in publishing, marketing and design.
25267123
Type Your Mac Question Here...
Mike is online now
A new question is answered every 9 seconds

I am trying to turn my appleScript into a application. It runs

Customer Question

I am trying to turn my appleScript into a application. It runs fine in AppleScript Editor but when I Try to turn it into an Application I get the following error and the program quits.

Can't get <> id 108 of application mail

Can you help

Thanks
Submitted: 6 years ago.
Category: Mac
Expert:  Mike replied 6 years ago.
Can you paste the script in this window?
Customer: replied 6 years ago.
Here you go! I was trying to come up with a way to interrigate the port just once then monitor for port change (No Luck) I am running this live now and it works, seems to run for so many hours then hangs up, thats why I was trying to make an app out of it.

Thanks for your help Mike

Bernie


repeat
serialport read 8 for [1]
if result = "O" then

set theRecipient to "[email protected]"
set theSubject to "From The Arduino"
set emailText to "There is someone at the door"
tell application "Mail"
activate
set theMessage to make new outgoing message
tell theMessage
set the subject to theSubject
set the content to emailText
make new to recipient at end of to recipients with properties {address:theRecipient}
send
end tell
save theMessage
end tell
end if
end repeat
Expert:  Mike replied 6 years ago.
Did you get errors when you clicked Compile? I get errors. Starting with:

Expected “given”, “with”, “without”, other parameter name, etc. but found number.
Customer: replied 6 years ago.
You need to add serialPort X to your Applescript lib, I don't get any errors when I compile only when I try to run the app. and I sent you the error i get. I runs perfectly in the AppleScript Editor.

Bernie
Expert:  Mike replied 6 years ago.
Are you using serial Port x 2.0, it worked for me no errors at least.

http://mac.softpedia.com/get/Communications/SerialPort-X.shtml
Customer: replied 6 years ago.
Yep 2.0
how do I send you a screen capture jpeg or tiff file?

Expert:  Mike replied 6 years ago.
There should be little tree in the menu above if you are using Firefox to attach images or send to:
[email protected]
Customer: replied 6 years ago.

Here you go I guess??
Customer: replied 6 years ago.
Here you go I guess:

Error Code
Expert:  Mike replied 6 years ago.
I’m not seeing anything maybe try the email
Customer: replied 6 years ago.
Error Message from my mac

I did what it asked it seemed to upload the jepeg and I inserted it here?

Let me know if this one worked?
Customer: replied 6 years ago.
file:///Users/bferneau/Desktop/Error%20Message.jpg
Expert:  Mike replied 6 years ago.
Still no go
Customer: replied 6 years ago.
http://www.justanswer.com/UploadFile.aspx?FT=IU&field_name
Expert:  Mike replied 6 years ago.
Can’t see it