Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Folder Action : dialog_timeout ??

Folder Action : dialog_timeout ??
Thread Tools
Mac Elite
Join Date: May 2002
Location: Los Angeles, CA.
Status: Offline
Reply With Quote
Jul 22, 2005, 07:30 AM
 
property dialog_timeout : 30 -- set the amount of time before dialogs auto-answer.



^ I currently have this line in a script that I'm trying to edit.

Does the 30 indicate that it's in minutes? or seconds?

also, is there any way I can just have the dialog on the screen until I click a button?

would it work by putting in "0" for the value?

any help would be great [this is for the pop-up dialog when a new item is detected in a folder] [folder action]
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Jul 22, 2005, 11:33 AM
 
In AppleScript the default unit of time is seconds.

As for a pop-up - I'd suggest scripting Growl.

Or you can just pop up a dialog yourself:

[php]
on opening folder this_folder
display dialog "the script was attached sucessfully" buttons {"OK"} default button 1 giving up after 2
end opening folder
[/php]


Growl Script:

[php]
on adding folder items to this_folder after receiving added_items

tell application "GrowlHelperApp"

set myAllNotesList to {"sampleNote"}
register as application "folderActionScript Growl Demo" all notifications myAllNotesList default notifications {"sampleNote"} icon of application "Finder"
end tell

tell application "Finder"
-- display dialog "File(s) added"
repeat with aFile in added_items
tell application "GrowlHelperApp"
notify with name "sampleNote" title "Drop Script" description "Foo! - you dropped a file on me.."
end tell
end repeat
end tell
end adding folder items to


[/php]
(Last edited by Diggory Laycock; Jul 22, 2005 at 11:34 AM. (Reason:Grammar))
     
badtz  (op)
Mac Elite
Join Date: May 2002
Location: Los Angeles, CA.
Status: Offline
Reply With Quote
Jul 22, 2005, 04:58 PM
 
would setting the time to "0" make the dialog not show at all?
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Jul 24, 2005, 04:50 AM
 
just omit the timeout part and it will stay on screen until dismissed.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:22 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2