Re: Question about zipping files
Re: Question about zipping files
- Subject: Re: Question about zipping files
- From: "Sean McBride" <email@hidden>
- Date: Tue, 16 Feb 2010 12:42:45 -0500
- Organization: Rogue Research Inc.
On 2/15/10 4:50 PM, Gideon King said:
>Thanks for the suggestion. Have not encountered Scripting Bridge before
>and have very little experience or understanding of AppleScript and no
>knowledge of Apple Events or what they do. I had a vague notion that
>Apple Events were pretty much old technology from before OSX, but now I
>see that it appears that it's the foundation of AppleScript. I guess I
>should take time to look into these technologies sometime (I come from a
>NextStep/OpenStep/WebObjects background)...
AppleEvents date from System 7, so yeah, they're pretty old. But that
should not automatically disqualify them. UNIX and NeXTStep are old too. :)
>Is there any particular reason you say to stay away from NSTask?
I only meant that it's generally preferable to use an API when you can.
ex: don't copy files using NSTask and 'cp', because NSWorkspace can copy
files.
>Scripting Bridge seems like an interesting option, but after having
>generated the headers for Finder, I could not see a command there for
>compressing files. I guess it's not scriptable.
The Finder is scriptable, but not every command can be scripted. I
looked quickly with AppleScript Editor, and indeed Finder does not seem
to expose 'compress'. Oh well.
I'd file a bug asking that NSWorkspaceCompressOperation be implemented.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden