Re: How to build valid folder path
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.