Re: Setting File & Creator Type access error
Re: Setting File & Creator Type access error
- Subject: Re: Setting File & Creator Type access error
- From: "Stockly, Ed" <email@hidden>
- Date: Wed, 01 Jul 2009 11:37:11 -0700
- Thread-topic: Setting File & Creator Type access error
> tell application "Finder"
> set my_file to choose file
> set file type of my_file to "THIS "
> set creator type of my_file to "that"
> end tell
> Nothing serious, but why does it take four lines of code to do what should be
done in one?
FWIW, in AppleScript, breaking a command into multiple lines is not
considered a problem. It adds no overhead to execution time and is often (as
in this case) more reliable than combining multiple commands into a single
line.
ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden