HomeForumsEMUG User GroupShuffle NewsletterTrainingAppleIDX PricesGalleryCalendarAboutContactSearch

Go Back   EmiratesMac > Mac stuff > Development
Register FAQ Members List Search Today's Posts Mark Forums Read Log Out

Development Programming, system development, databases, web development, etc.


Welcome to EmiratesMac! Join EmiratesMac today! Contact us!
Reply
 
LinkBack Thread Tools Display Modes
Sponsored Links
Old 28th April 2008, 19:02   #1 (permalink)
Junior Member
 
Join Date: Mar 2008
Location: Dubai
Posts: 2
muhammednoufal is on a distinguished road
Applescript in shell

I tried shell to execute applescript.

osascript -e 'display dialog "hi"'


it gives message "No user interaction allowed"

and also for osascript -e 'choose file'

Wats wrong with my code?

With Thankzz
Muhammed


muhammednoufal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28th April 2008, 21:19   #2 (permalink)
Administrator

 
Magnus's Avatar
 
Join Date: Apr 2006
Location: Dubai
Posts: 8,397
Magnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond repute
Hey Muhammed, good to see you here. Unfortunatey Applescript is not something I'm very good at, but I hope someone else can help. I think it'd be great to get more AS stuff on the site.
Magnus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 29th May 2008, 18:40   #3 (permalink)
Senior Member

 
hanzo's Avatar
 
Join Date: Sep 2007
Location: Abu Dhabi
Posts: 178
hanzo is on a distinguished road
Sorry I missed this one, haven't been around lately.

This is a pretty easy one:

osascript doesn't have a GUI to interact with, so you need to tell something with a GUI to display the dialog.

In this case, Finder would be the way to go.

Here is what you want:

osascript -e 'tell application "Finder" to display dialog "hi"'
hanzo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 30th May 2008, 07:53   #4 (permalink)
Administrator

 
Magnus's Avatar
 
Join Date: Apr 2006
Location: Dubai
Posts: 8,397
Magnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond repute
Quote:
Originally Posted by hanzo View Post
Sorry I missed this one, haven't been around lately.
Hey freezerpants, welcome back, hope everything's been okay
Magnus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 30th May 2008, 13:24   #5 (permalink)
Senior Member

 
hanzo's Avatar
 
Join Date: Sep 2007
Location: Abu Dhabi
Posts: 178
hanzo is on a distinguished road
Everything is fine, just suffering from time/attention management issues
hanzo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 31st May 2008, 06:34   #6 (permalink)
Administrator

 
Magnus's Avatar
 
Join Date: Apr 2006
Location: Dubai
Posts: 8,397
Magnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond reputeMagnus has a reputation beyond repute
Quote:
Originally Posted by hanzo View Post
Everything is fine, just suffering from time/attention management issues
I understand, that happens to all of us.
Magnus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Apple, the Apple Logo, and Macintosh are trademarks of Apple, Inc., registered in the U.S.A. and other countries. EmiratesMac is a recognized independent user group and has not been authorized, sponsored, or otherwise approved by Apple, Inc.
All times are GMT +4. The time now is 06:38.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0