• 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: How to build valid folder path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to build valid folder path


  • Subject: Re: How to build valid folder path
  • From: Gary Lists <email@hidden>
  • Date: Wed, 17 Dec 2003 14:42:01 -0500
  • Http: //bau2.uibk.ac.at/sg/python/Sounds/HolyGrail.wav/taunt.wav

On or about 12-17-03 1:36 PM, Mark Dawson wrote:

> I want to copy a file into a folder, using the "move" command.
> However, I'm having trouble getting the right type for the "to" piece
>
> I'm doing a "move theItem to loc"
>
> I'm setting loc to be: set loc to (startPath & bundleName &
> ":Contents:") as string
>
> If I manually type in the path, everything works.

Well, I doubt it, but I suppose it really depends on what you are typing
exactly. If it's just "some:file:path" then I don't think so...at least it
won't ever work like that OMM.

> What could I be doing wrong?

Using the 'move' command incorrectly. It taks an alias (or file), not a
string.

set theItem to alias "My iMac:Desktop Folder:clipping file"
set loc to alias "My iMac:Desktop Folder:untitled folder 1:"

move theItem to loc
--> file "clipping file" of folder "untitled folder 1"

--
Gary
_______________________________________________
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: 
 >How to build valid folder path (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: Filter reference form question
  • Next by Date: Re: How to build valid folder path
  • Previous by thread: Re: How to build valid folder path
  • Next by thread: 24U E-mail OSAX
  • Index(es):
    • Date
    • Thread