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

Re: Creating a new folder


  • Subject: Re: Creating a new folder
  • From: Andrew Oliver <email@hidden>
  • Date: Sun, 09 May 2004 21:19:36 -0700

That's because 'PartA' is a string, so you're trying to make a new folder at
a string, which makes no sense.

Instead you'll need to coerce PartA to a folder or alias reference before
the Finder can use it as a location to create the new folder:

set myNewFolder to make new folder at folder PartA with properties
{name:"Temp"}

Andrew
:)

On 5/9/04 9:03 PM, "Carl Anderson" <email@hidden> wrote:

> Yeah, I sort of forgot to include the script. So, here it is
> set PartA to path to desktop
> set PartA to PartA & "Test:"
> display dialog PartA as text
> tell application "Finder"
> set myNewFolder to make new folder at PartA with properties
> {name:"Temp"}
> end tell
> It works until it reaches the line "set myNewFolder to make new folder
> at PartA with properties {name:"Temp"}"
> where it says "Finder got an error: Can't get some object." and the new
> folder is created, but not in the folder "Test", but on the desktop
> along side that folder.
> Sincerely;
> Carl Anderson
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Creating a new folder (From: Carl Anderson <email@hidden>)

  • Prev by Date: Re: Creating a new folder
  • Next by Date: Re: Creating a new folder
  • Previous by thread: Re: Creating a new folder
  • Next by thread: Re: Creating a new folder
  • Index(es):
    • Date
    • Thread