• 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: make new folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make new folder


  • Subject: Re: make new folder
  • From: Michelle Steiner <email@hidden>
  • Date: Sun, 1 Jun 2008 16:57:44 -0700

On Jun 1, 2008, at 4:49 PM, Luther Fuller wrote:

tell application "System Events"
if not (exists folder "background" of xxxxxx) then
set hFolder to (make new folder at xxxxxx with properties {name:"background"})


where xxxxxx is an alias. The first occurrence of xxxxxx always works, but the second always fails. I've tried making the second occurrence a posix path, a reference and some other things, but there's always the error: "System Events can't make xxxxxx into a type location reference." (or sometimes 'integer') I can't figure out what's happening here. Does anyone know?

I get the same error, but it works with Finder instead of System Events.

-- Michelle

--
"If I were not an atheist, I would believe in a God who would choose to save people on the basis of the totality of their lives and not the pattern of their words. I think he would prefer an honest and righteous atheist to a TV preacher whose every word is God, God, God, and whose every deed is foul, foul, foul." -- Isaac Asimov



_______________________________________________ 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
References: 
 >make new folder (From: Luther Fuller <email@hidden>)

  • Prev by Date: make new folder
  • Next by Date: SQLite install
  • Previous by thread: make new folder
  • Next by thread: Re: make new folder
  • Index(es):
    • Date
    • Thread