• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting File & Creator Type access error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Find index of list to find item in another list
  • Next by Date: Re: Setting File & Creator Type access error
  • Previous by thread: Re: Setting File & Creator Type access error
  • Next by thread: Re: Setting File & Creator Type access error
  • Index(es):
    • Date
    • Thread