• 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: Another script to analyize, please
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another script to analyize, please


  • Subject: Re: Another script to analyize, please
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 5 Dec 2003 09:00:40 +1100

On Dec 5, 2003, at 2:53 AM, Michelle Steiner wrote:

set docpath to choose file name
set thedoc to open for access docpath with write permission
close access thedoc
tell application "Finder"
set file type of file docpath to "GIFf"
set the file creator of file docpath to "GKON"

end tell

If I leave out "file" in setting the file type or file creator, I get a stack overflow, but with the word file there, the log shows

set file type of file (file "Dora:Users:michelle:Desktop:untitled") to "GIFf"
"GIFf"
set file creator of file (file "Dora:Users:michelle:Desktop:untitled") to "GKON"

It seems to me that "file" is redundant.

I notice that 'choose file name' returns a furl rather than a file spec -- did this change recently? Hard to tell because they both appear the same in editors.

And 'file creator' should be 'creator type'.

--
Shane Stanley <email@hidden>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Another script to analyize, please
      • From: Michelle Steiner <email@hidden>
References: 
 >Another script to analyize, please (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Panther Font Mania (was Quark 6 Font Mess)
  • Next by Date: Re: Playing a simple movie from quicktime
  • Previous by thread: Another script to analyize, please
  • Next by thread: Re: Another script to analyize, please
  • Index(es):
    • Date
    • Thread