• 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: System Events location specifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System Events location specifier


  • Subject: Re: System Events location specifier
  • From: KOENIG Yvan <email@hidden>
  • Date: Wed, 01 Feb 2012 21:31:50 +0100


Le 1 févr. 2012 à 19:46, Luther Fuller a écrit :

On Feb 1, 2012, at 11:18 AM, KOENIG Yvan wrote:

tell application "System Events"
make new folder at end of folder (locRef as text)
…
end tell

I tried ...

tell application "System Events"
make new folder at end of folder (locRef as text) with properties {name:"TEST_#"}

and it did work. It seems that the magic words "at end of folder" are necessary.
Thanks!


at end is really an important thing.
After posting my answer I made some tests.
Before them I was always coercing pathname to text and used them with the incantation folder theTextPath or disk item theTextPath.
I tested with an alias as a replacement of folder theTextPath and surprise, it behaved flawlessly.
I guess that I will drop some instructions in my scripts.

Yvan KOENIG (VALLAURIS, France) mercredi 1 février 2012 21:31:45


 _______________________________________________
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: System Events location specifier
      • From: Christopher Stone <email@hidden>
References: 
 >System Events location specifier (From: Luther Fuller <email@hidden>)
 >Re: System Events location specifier (From: KOENIG Yvan <email@hidden>)
 >Re: System Events location specifier (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: System Events location specifier
  • Next by Date: Re: Using Applescript to talk to other computers.
  • Previous by thread: Re: System Events location specifier
  • Next by thread: Re: System Events location specifier
  • Index(es):
    • Date
    • Thread