info for not providing all information
info for not providing all information
- Subject: info for not providing all information
- From: Steve Suranie <email@hidden>
- Date: Thu, 07 Jul 2005 08:58:36 -0400
I have a script (which I am using in RealBasic) that gets the info for a
selected file. When I select HTML files created in Dreamweaver the script
gives me an error message saying it cannot get the default application.
Is there a way to check which information has been returned before trying to
access that information - something like:
if default application of thisFileInfo then
end if
(I tried this and it didn't work, said default application wasn't a boolean)
Here's my script:
set infoToReturn to {}
set thisFilePath to choose file with prompt "Select a file to convert."
copy (thisFilePath as string) & "::" to end of infoToReturn
set thisFileInfo to info for thisFilePath
copy name of thisFileInfo & "::" to end of infoToReturn
copy creation date of thisFileInfo & "::" to end of infoToReturn
copy modification date of thisFileInfo & "::" to end of infoToReturn
copy name extension of thisFileInfo & "::" to end of infoToReturn
copy kind of thisFileInfo & "::" to end of infoToReturn
copy default application of thisFileInfo & "::" to end of infoToReturn
return infoToReturn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden