Re: Choose File Limited by File Extension OR Type ???
Re: Choose File Limited by File Extension OR Type ???
- Subject: Re: Choose File Limited by File Extension OR Type ???
- From: "Houston, Brad" <email@hidden>
- Date: Fri, 25 Apr 2008 11:25:57 -0700
- Importance: normal
- Priority: normal
- Thread-topic: Choose File Limited by File Extension OR Type ???
Hi Luther/Rick,
I didn't know the option-command-I, which will come in handy, so thanks for
that. However, the two types are always mixed, and the problem of not being
able to distinguish one file's creator from another nullifies that solution
for my problem.
Looking in the launchservices.plist, it seems the discriminating factor
there is again just the type (encapsulated postscript) without regard to the
originating program. I might be reading it wrong.
It could be that the shift to reliance on extensions has eliminated the
entire consideration of a creator. The eps format is rather unique in that
it's used for completely distinct file natures (vector and raster), whereas
most other (art) formats couldn't care less who edits it (a pixel is a pixel
is a pixel). Easy to imagine the powers that be saying, "Well, it works for
everything else except .eps, so the 80/20 rule says they (us) will just have
to live with it". Perhaps I'm just getting cynical.
Bringing this back to applescript, my company could shift new development to
using native ai and ps files (eliminating the previous problem), but getting
info about the graphic page items from their XML element seems to work only
for eps's (a happy coincidence), as in the script segment below. Using
"Graphic", "Images", or "page item" in place of "EPSs" just gets a "can't
get that" error. No book I've referenced addresses this at all.
tell application "Adobe InDesign CS2"
tell document 1
get vertical scale of EPSs of the selection -- selection is the XML
element of the target graphic
end tell
end tell
Brad
On 4/24/08 5:06 PM, "Luther Fuller" <email@hidden> wrote:
> Interesting ... but where is the documentation for launchservices
> including the keys in com.apple.launchservices.plist ? I've searched,
> but can't find.
>
> On Apr 24, 2008, at 6:21 PM, Rick Gordon wrote:
>> How about editing ~/Library/Preferences/
>> com.apple.launchservices.plist?
>>
>> On 4/24/08 at 5:58 PM -0500, Luther Fuller wrote in a message entitled
>> "Re: Choose File Limited by File Extension OR Type ???":
>>
>>> On Apr 24, 2008, at 4:55 PM, Houston, Brad wrote:
>>>> If you know a way of removing this universal default, I'd love to
>>>> hear it, aside from going to each file and doing it individually
>>>> (far too many, and more coming in daily).
>>>
>>> Yes, this is something that you have to do manually, but NOT
>>> individually. If you are lucky, you have many files in a few
>>> folders. Simply select ALL the files in a folder that you want to
>>> change, then ...
>>>
>>> option-command-I
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
m
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
--------------------------------------------------------
The information contained in this message is intended only for the recipient, and may be a confidential attorney-client communication or may otherwise be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please be aware that any dissemination or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the message and deleting it from your computer. The McGraw-Hill Companies, Inc. reserves the right, subject to applicable local law, to monitor and review the content of any electronic message or information sent to or from McGraw-Hill employee e-mail addresses without informing the sender or recipient of the message.
--------------------------------------------------------
_______________________________________________
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