• 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: Using the 'Create Archive' - File Menu Command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 09:22:46 -0700
  • Thread-topic: Using the 'Create Archive' - File Menu Command

On 4/24/2007 8:24 AM, "Philip Aker" <email@hidden> wrote:

>> This is the thread you want:
>>
>> http://lists.apple.com/archives/applescript-users/2006/Oct/
>> msg00106.html
>>
>> "Scripting BOMArchiveHelper possible? of 5 October 2006.
>>
>> hope this helps
>>
>> jmck
>
> Use:
>
> set fold to (characters 1 thru -2 of (POSIX path of (choose folder)))
> as text
> do shell script "ditto -ck " & quoted form of fold & space & quoted
> form of (fold & ".zip")
>
> to attain the "Create Archive of Š" behavior.

Thank you Philip,

Please forgive my novice AppleScript status, however when I  ran this script
-  I get the error: " Finder got an error - ditto: /myDisk/aTest.zip:  no
such file or directory"

Q:  what did I do wrong - how can I fix this?


tell application "Finder"
    set fold to (characters 1 thru -2 of (POSIX path of ("/myDisk/aTest/")))
as text
    do shell script "ditto -ck " & quoted form of fold & space & quoted form
of (fold & ".zip")
end tell


--
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

  • Follow-Ups:
    • Re: Using the 'Create Archive' - File Menu Command
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Using the 'Create Archive' - File Menu Command (From: Philip Aker <email@hidden>)

  • Prev by Date: Checking for modal dialog in app
  • Next by Date: Re: Using the 'Create Archive' - File Menu Command
  • Previous by thread: Re: Using the 'Create Archive' - File Menu Command
  • Next by thread: Re: Using the 'Create Archive' - File Menu Command
  • Index(es):
    • Date
    • Thread