Re: Tar/gzip is messing up icons
Re: Tar/gzip is messing up icons
- Subject: Re: Tar/gzip is messing up icons
- From: Jake Pietrykowski <email@hidden>
- Date: Tue, 25 Jan 2005 09:26:52 -0600
Jan,
I would just do this...its a simple one-liner.
set testDir to "/Users/jpietry/Desktop/testDir"
set testZIP to "/Users/jpietry/Desktop/testDir.zip"
do shell script "/usr/bin/ditto -c -k -rsrc --keepParent " & testDir & " " &
testZIP
BE SURE TO KEEP AS 1-LINE.
Works like a charm. You don't need to use the GUI, and call the Terminal and
BOMArchiveHelper.
Best luck,
Jake
On 1/25/05 2:48 AM, "Jan-Bultereys" <email@hidden> wrote:
> thanks martin and jake,
>
> Just a remark,
> when using right click I have the extension .zip
> when I use this script I get extension .cpgz
> is there a special reason why?
> I make more sense to me with extension .zip (this is PC compatible, I don't
> know for .cpgz...)
>
> This is the drag and drop script:
>
> on open these_items
> try
> tell application "BOMArchiveHelper" to open these_items
> on error
> display dialog "This script only works with Panther"
> end try
> end open
>
> But I want this:
> how can I use this in a loop/variable..... I don't get it to work...
> also when the compression is done the file has to move to an other folder....
>
> repeat with temp_file in file_list
> set FileName to name of temp_file
> set stuff_name to quoted form of FileName as string
> tell application "BOMArchiveHelper" to open stuff_name
> end tell
> end repeat
>
> this is a piece what I had using the stuff option:
> set stuffcom to "cd " & file_list_path & ";stuff -D " & stuff_name & "; mv
> *.sit " & movepath & ""
> tell application "Terminal"
> activate
> do script stuffcom
> end tell
>
> But here I have problems closing/quiting the terminal window after every
> compression
>
> best regards,jan
>
>
>> ----------
>> From:
>> applescript-users-bounces+jan.bultereys=email@hidden on
>> behalf of Martin Orpen
>> Sent: Monday, January 24, 2005 18:21 PM
>> To: AppleScript
>> Subject: Re: Tar/gzip is messing up icons
>>
>> on 24/1/05 4:07 pm, Jan-Bultereys wrote:
>>
>>> thanks martin, not bad at all......
>>>
>>> Is this "BOMArchiveHelper" reliable?
>>>
>>> Did anyone had any issues with it?
>>
>> I doubt it as the Finder uses it to do the work when you select "Create
>> Archive"
>>
>> We've had no problems with it apart from people not having Panther or people
>> querying the suffix.
>>
>> Apple seem to be short of documentation this service. Searching the
>> developer site comes up with nothing!
>>
>> --
>> Martin Orpen
>> Idea Digital Imaging Ltd -- The Image Specialists
>> http://www.idea-digital.com
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Applescript-users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> cedepot.com
>>
>> This email sent to email@hidden
>>
>>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden