• 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 18:18:50 +0100

Le 1 févr. 2012 à 17:47, Luther Fuller a écrit :

> I have been trying to get one line of code to work ...
>
> 	tell application "System Events"
> 		make new folder at locRef with properties {name:"TEST_#"}
>
> The problem is that the variable locRef must be a 'location specifier'.
> The use of an: alias; colon delimited path; posix path; or Finder reference
> all error.
>
> What do I need here? or ... Is this command broken?

The command behaves flawlessly.
I use daily :
set locRef to "path:to:a:folder" as alias (* or any other class *)

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

Yvan KOENIG (VALLAURIS, France) mercredi 1 février 2012 18:18:46


 _______________________________________________
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: Luther Fuller <email@hidden>
References: 
 >System Events location specifier (From: Luther Fuller <email@hidden>)

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