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: 6807
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: 4 years ago.
Category: Mac
Expert:  Mike replied 4 years ago.
Can you paste the script in this window?
Customer: replied 4 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 "XXXXX@XXXXXX.XXX"
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 4 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 4 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 4 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 4 years ago.
Yep 2.0
how do I send you a screen capture jpeg or tiff file?

Expert:  Mike replied 4 years ago.
There should be little tree in the menu above if you are using Firefox to attach images or send to:
XXX@XXXXXX.XXX
Customer: replied 4 years ago.

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

Error Code
Expert:  Mike replied 4 years ago.
I’m not seeing anything maybe try the email
Customer: replied 4 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 4 years ago.
file:///Users/bferneau/Desktop/Error%20Message.jpg
Expert:  Mike replied 4 years ago.
Still no go
Customer: replied 4 years ago.
http://www.justanswer.com/UploadFile.aspx?FT=IU&field_name
Expert:  Mike replied 4 years ago.
Can’t see it

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • Hi John, Thank you for your expertise and, more important, for your kindness because they make me, almost, look forward to my next computer problem. After the next problem comes, I'll be delighted to correspond again with you. I'm told that I excel at programing. But system administration has never been one of my talents. So it's great to have an expert to rely on when the computer decides to stump me. God bless, Bill Bill M. Schenectady, New York
< Last | Next >
  • Hi John, Thank you for your expertise and, more important, for your kindness because they make me, almost, look forward to my next computer problem. After the next problem comes, I'll be delighted to correspond again with you. I'm told that I excel at programing. But system administration has never been one of my talents. So it's great to have an expert to rely on when the computer decides to stump me. God bless, Bill Bill M. Schenectady, New York
  • The Expert answered my Mac question and was patient. He answered in a thorough and timely manner, keeping the response on a level that could understand. Thank you! Frank Canada
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
 
 
 

Meet The Experts:

 
 
 
  • Mike

    Mac Medic

    Satisfied Customers:

    6256
    Over 20 years IT experience with Apple computers in publishing, marketing and design.
< Last | Next >
  • http://ww2.justanswer.com/uploads/macthelife/2009-10-20_1899_mikesebaharsquare64.jpg Mike's Avatar

    Mike

    Mac Medic

    Satisfied Customers:

    6256
    Over 20 years IT experience with Apple computers in publishing, marketing and design.
  • http://ww2.justanswer.com/uploads/AS/ashiknasameen/2012-5-15_141836_final2.64x64.jpg Ashik's Avatar

    Ashik

    Mac Helper

    Satisfied Customers:

    5282
    7+ Years of Experience in troubleshooting Macs, iPhone, iPad, iPod etc
  • http://ww2.justanswer.com/uploads/DP/dpean/2012-6-6_172828_avatorme1.64x64.JPG Daniel's Avatar

    Daniel

    Mac Genius

    Satisfied Customers:

    4670
    Apple certified on desktop and portable, help desk qualified. Have owned and used Macs since 1989.
  • http://ww2.justanswer.com/uploads/VI/vinodvmenon2005/1.64x64.jpg Vinod Menon's Avatar

    Vinod Menon

    Support Specialist

    Satisfied Customers:

    2068
    worked as a Tech support Associate for Apple products
  • http://ww2.justanswer.com/uploads/BE/beboo/2011-1-14_201648_n5063313142021801763.64x64.jpg Brandon M.'s Avatar

    Brandon M.

    Mac Support Specialist

    Satisfied Customers:

    1501
    10+ Years Mac Support as contractor and currently an IT Manager for law firm
  • http://ww2.justanswer.com/uploads/MA/MacDruid/IMG_0232.64x64.JPG John T. F.'s Avatar

    John T. F.

    Mac Druid

    Satisfied Customers:

    1408
    20+ years in the computer/Mac industry
  • http://ww2.justanswer.com/uploads/MA/MacHelpdesk/1d2d506.64x64.jpg David's Avatar

    David

    Mac Support Specialist

    Satisfied Customers:

    1236
    BSc, H.Dip, Apple Certified