Economy-x-Talk - Sample Scripts
AskFile() AS
An AppleScript script that uses navigation services (if available) rather than HyperCard's native save dialog.
on askFile(thePrompt)
set theFile to ""
try
set theFile to (choose file name with prompt thePrompt) as text
set variable "theFolder" to theFile
on error errMsg number errNr
if errNr is not -128 then
set theFile to "Error: " & errMsg
end if
end try
return theFile
end askFile
on run()
return (askFile("Save this file as..."))
end run
Keep this extensive resource of tutorials and samples on-line! Support RunRev.info!
| Yes, this script is useful. I make a donation and choose freely how much I want to donate on-line (PayPal). Click here if you want to make a donation in dollars. | This script has not (completely) solved my problem and I want Economy-x-Talk to take care of it. Let me contact you. |
Copyright©2002-2008 by Mark Schonewille, Nijmegen, the Netherlands. This web site is in no way affiliated with Runtime Revolution Ltd., but we do recommend the Revolution development platform.