• 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
what is wrong with this ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

what is wrong with this ?


  • Subject: what is wrong with this ?
  • From: yvan-koenig <email@hidden>
  • Date: Tue, 8 Feb 2005 13:38:45 +0100

Le 8 févr. 2005 , à 12:54, Christian Vinaa a écrit :

tell application "Finder"
set filePath to folder "x" of folder "Desktop" of folder "myUser" of folder "Users" of startup disk
end tell
tell application "AppleWorks 6"
set theNewDoc to make new document with properties {document kind:text document, name:"yada"} at filePath
end tell



Very easy:


tell application "Finder"
set bootVol to (name of startup disk) as text
set filePath to (folder "x" of folder "Desktop" of folder "myUser" of folder "Users" of folder bootVol) as text
-- set filePath to bootVol &"Users:myUser:Desktop:x:"
end tell
tell application "AppleWorks 6"
set theNewDoc to make new document with properties {document kind:text document, name:"yada"} at filePath
end tell



Yvan KOENIG


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: SV: AppleScript SOAP implementation
  • Next by Date: Re: SV: AppleScript SOAP implementation
  • Previous by thread: Re: what is wrong with this ?
  • Next by thread: A question on shell scripting in AppleScript
  • Index(es):
    • Date
    • Thread