• 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
I have a solution to creating a file and setting the creator in AS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I have a solution to creating a file and setting the creator in AS


  • Subject: I have a solution to creating a file and setting the creator in AS
  • From: Jerry LeVan <email@hidden>
  • Date: Sun, 22 Sep 2002 21:28:02 -0400

Good Evening,

Yesterday I posted a message about the failure of an old script that created
a file and then tried to set the creator, I was getting a stack overflow in
the finder tell block.

Could somebody tell me why this version works and the older one (see the
commented lines in the tell block ) does not?

Thanks,
Jerry

set reportFile to choose file name with prompt "Select Report File Name"
set FD to open for access reportFile with write permission
write "Hello World
" to FD
close access reportFile
log reportFile

tell application "Finder"
-- This one fails
--set creator type of reportFile to "R*ch"
-- but this works...
set creator type of alias (reportFile as string) to "R*ch"
end tell
_______________________________________________
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: I have a solution to creating a file and setting the creator in AS
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Syntax for make new event in iCal?
  • Next by Date: Re: I have a solution to creating a file and setting the creator in AS
  • Previous by thread: Re: Syntax for make new event in iCal?
  • Next by thread: Re: I have a solution to creating a file and setting the creator in AS
  • Index(es):
    • Date
    • Thread