Re: Using the 'Create Archive' - File Menu Command
Re: Using the 'Create Archive' - File Menu Command
- Subject: Re: Using the 'Create Archive' - File Menu Command
- From: revDAVE <email@hidden>
- Date: Tue, 24 Apr 2007 17:10:13 -0700
- Thread-topic: Using the 'Create Archive' - File Menu Command
On 4/24/2007 5:00 PM, "revDAVE" <email@hidden> wrote:
> On 4/24/2007 10:36 AM, "Paul Berkowitz" <email@hidden> wrote:
>
>> On 4/24/07 8:24 AM, "Philip Aker" <email@hidden> wrote:
>>
>>>
>>> set fold to (characters 1 thru -2 of (POSIX path of (choose folder)))
>>> as text
>>
>> Not a major matter, but is there any reason why you'd get a list of
>> characters and then coerce the list to text rather than
>>
>>
>> set fold to text 1 thru -2 of (POSIX path of (choose folder))
>
>
> tell application "Finder"
>
> set fold to (characters 1 thru -2 of (POSIX path of ("/MacHD/aTest/")))
> do shell script "ditto -ck " & quoted form of fold & space & quoted form
> of (fold & ".zip")
>
> end tell
>
> Hello Paul - thanks for your help - when I run this script - I get a
> different form of the same error: AppleScript error - can't get quoted form
> of {"/", "M","a", ... etc}
>
I just saw this revision also - and it states : " Finder got an error:
ditto:/MacHD/aTest.zip: no such file or directory"
set fold to text 1 thru -2 of (POSIX path of ("/MacHD/aTest/"))
>
> --
> Thanks - RevDave
> email@hidden
> [db-lists]
>
>
--
Thanks - RevDave
email@hidden
[db-lists]
_______________________________________________
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