• 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: creating a file within a folder etc...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating a file within a folder etc...


  • Subject: Re: creating a file within a folder etc...
  • From: KOENIG Yvan <email@hidden>
  • Date: Mon, 21 Feb 2011 10:18:32 +0100


Le 21 févr. 2011 à 00:27, Michelle Steiner a écrit :

Here is my first pass at it.

set project_location to choose folder
display dialog "Enter the name of the folder to be created" default answer ""
set project_name to text returned of the result

tell application "Finder"
set project_folders to make folder at project_location with properties {name:project_name}
end tell

set parameters_data to "whatever"

set parameters to open for access file ((project_folders as text) & "parameters.txt") with write permission
write parameters_data to parameters
close access parameters

hello

May you help ?

When I run this huge script :

display dialog

I get the error :

error "Il est impossible de rendre current application en type string." number -1700 from application "AppleScript Editor" to string

I'm unable to guess what may be wrong.

Yvan KOENIG (VALLAURIS, France) lundi 21 février 2011 10:18:09


 _______________________________________________
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

  • Follow-Ups:
    • Re: creating a file within a folder etc...
      • From: Axel Luttgens <email@hidden>
    • Re: creating a file within a folder etc...
      • From: Michelle Steiner <email@hidden>
    • Re: creating a file within a folder etc...
      • From: Jean-Christophe Helary <email@hidden>
References: 
 >creating a file within a folder etc... (From: Jean-Christophe Helary <email@hidden>)
 >Re: creating a file within a folder etc... (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: List of all applications
  • Next by Date: Re: creating a file within a folder etc...
  • Previous by thread: Re: creating a file within a folder etc...
  • Next by thread: Re: creating a file within a folder etc...
  • Index(es):
    • Date
    • Thread