Re: AppleScript-Users Digest, Vol 9, Issue 147
Re: AppleScript-Users Digest, Vol 9, Issue 147
- Subject: Re: AppleScript-Users Digest, Vol 9, Issue 147
- From: lin Jim <email@hidden>
- Date: Sat, 07 Apr 2012 16:22:38 -0400
Re: Folder actions questions - PAGE 2 (Christopher Stone)
LinJim
On 2012年4月6日, at 下午11:50, email@hidden wrote:
> Send AppleScript-Users mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.apple.com/mailman/listinfo/applescript-users
> or, via email, send a message with subject or body 'help' to
> email@hidden
>
> You can reach the person managing the list at
> email@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of AppleScript-Users digest..."
>
>
> Today's Topics:
>
> 1. Folder actions questions (Robert Poland)
> 2. Folder actions questions - PAGE 2 (Robert Poland)
> 3. RE: InDesign CS5.1 object styles (Rick Gordon)
> 4. RE: InDesign CS5.1 object styles (Rick Gordon)
> 5. Re: Folder actions questions - PAGE 2 (Christopher Stone)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 06 Apr 2012 16:15:43 -0600
> From: Robert Poland <email@hidden>
> To: AppleScript Users <email@hidden>
> Subject: Folder actions questions
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="windows-1252"
>
> Hi,
>
> I had a script "icon set_Label_Index" which I attached (Folder Action) to folders "Scans ƒ" and "TV" it's purpose was to increment the Label Index based on the number of files in the folder.
>
> Since the folders contained, sometimes very large, transient items I choose to not let Time Machine back them up.
>
> All of the sudden I get the action "open GraphicConverter…" instead of "icon set_Label_Index".
>
> When I go to the folders and look at Services/Folder Actions Setup… all I get is an empty box with no indication of what is/was attached.
>
> Looking at Google doesn't seem to address Folder Actions with Lion.
>
> Since it looks like I'm going to have to reinvent and reattach the script, is Folder Actions screwed up now in Lion?
>
> Or is that just Life?
>
> TIA,
>
> Robert Poland
> 2.7 GHz Intel Core I5, 27” iMac
> 12 GB Ram, 1TB HD, OS 10.7.3
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.apple.com/mailman/private/applescript-users/attachments/20120406/5d979b59/attachment.html>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 06 Apr 2012 16:26:51 -0600
> From: Robert Poland <email@hidden>
> To: AppleScript Users <email@hidden>
> Cc: GcMac <email@hidden>
> Subject: Folder actions questions - PAGE 2
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="windows-1252"
>
> Hi,
>
> New discovery…
>
> If I go to a folder and select at Services/Folder Actions Setup… then click on the plus (+) sign GraphicConverter opens???
>
> Looks like a GC bug.
>
> Hi,
>
> I had a script "icon set_Label_Index" which I attached (Folder Action) to folders "Scans ƒ" and "TV" it's purpose was to increment the Label Index based on the number of files in the folder.
>
> Since the folders contained, sometimes very large, transient items I choose to not let Time Machine back them up.
>
> All of the sudden I get the action "open GraphicConverter…" instead of "icon set_Label_Index".
>
> When I go to the folders and look at Services/Folder Actions Setup… all I get is an empty box with no indication of what is/was attached.
>
> Looking at Google doesn't seem to address Folder Actions with Lion.
>
> Since it looks like I'm going to have to reinvent and reattach the script, is Folder Actions screwed up now in Lion?
>
> Or is that just Life?
>
> TIA,
>
> Robert Poland
> 2.7 GHz Intel Core I5, 27” iMac
> 12 GB Ram, 1TB HD, OS 10.7.3
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.apple.com/mailman/private/applescript-users/attachments/20120406/4e1d0951/attachment.html>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 06 Apr 2012 16:54:29 -0700
> From: Rick Gordon <email@hidden>
> To: Applescript Users <email@hidden>
> Subject: RE: InDesign CS5.1 object styles
> Message-ID: <p0624080ecba5328601b6@[192.168.1.69]>
> Content-Type: text/plain; charset=iso-8859-1
>
> See if some of the code below helps:
>
> ----------
>
> property pLiveLayerName : "FLO_LIVE_TEXT"
> property pImageLayerName : "User Graphics Layer"
>
> set vTextFrameList to {}
> set vResultList to {}
> tell application "Adobe InDesign CS5.5"
> set vApp to it
> tell active document
> set vDoc to it
> set vLiveTextLayer to layer pLiveLayerName
> set vImageLayer to layer pImageLayerName
> set vNoneSwatch to swatch "None"
> set vTextFrameList to items of (all page items of vLiveTextLayer) where (class is text frame)
> --set vTextFrameList to items of (selection as list)
> repeat with vEachItem in vTextFrameList
> tell vEachItem
> set vTransparency to transparency settings
> set vContentTransparency to content transparency settings
> set vFillTransparency to fill transparency settings
> set vStrokeTransparency to stroke transparency settings
> set vNoTransparency to true
> set vResetList to {}
> tell vTransparency
> if (opacity of blending settings 100.0) or (blend mode of blending settings is not normal) or (mode of drop shadow settings is not none) or (mode of feather settings is not none) or (applied of inner shadow settings is true) or (applied of outer glow settings is true) and (applied of inner glow settings is true) or (applied of bevel and emboss settings is true) or (applied of satin settings is true) or (applied of directional feather settings is true) or (applied of gradient feather settings is true) then
> set vNoTransparency to false
> set end of vResetList to vTransparency
> end if
> end tell --vTransparency
> tell vContentTransparency
> if (opacity of blending settings 100.0) or (blend mode of blending settings is not normal) or (mode of drop shadow settings is not none) or (mode of feather settings is not none) or (applied of inner shadow settings is true) or (applied of outer glow settings is true) and (applied of inner glow settings is true) or (applied of bevel and emboss settings is true) or (applied of satin settings is true) or (applied of directional feather settings is true) or (applied of gradient feather settings is true) then
> set vNoTransparency to false
> set end of vResetList to vContentTransparency
> end if
> end tell --vContentTransparency
> tell vFillTransparency
> if (opacity of blending settings 100.0) or (blend mode of blending settings is not normal) or (mode of drop shadow settings is not none) or (mode of feather settings is not none) or (applied of inner shadow settings is true) or (applied of outer glow settings is true) and (applied of inner glow settings is true) or (applied of bevel and emboss settings is true) or (applied of satin settings is true) or (applied of directional feather settings is true) or (applied of gradient feather settings is true) then
> set vNoTransparency to false
> set end of vResetList to vFillTransparency
> end if
> end tell --vFillTransparency
> tell vStrokeTransparency
> if (opacity of blending settings 100.0) or (blend mode of blending settings is not normal) or (mode of drop shadow settings is not none) or (mode of feather settings is not none) or (applied of inner shadow settings is true) or (applied of outer glow settings is true) and (applied of inner glow settings is true) or (applied of bevel and emboss settings is true) or (applied of satin settings is true) or (applied of directional feather settings is true) or (applied of gradient feather settings is true) then
> set vNoTransparency to false
> set end of vResetList to vStrokeTransparency
> end if
> end tell --vStrokeTransparency
> if vNoTransparency is false then
> set vCurrentPage to parent page
> set end of vResultList to name of vCurrentPage
> copy properties to vProperties
> set vGraphicsFrame to duplicate it
> set contents of parent story of vGraphicsFrame to ""
> set properties of vGraphicsFrame to {item layer:vImageLayer, content type:unassigned}
> set properties to {fill color:vNoneSwatch, stroke color:vNoneSwatch}
> repeat with vItem in vResetList
> tell vItem
> if properties of blending settings is not {opacity:100.0, blend mode:normal} then set ¬
> properties of blending settings to {opacity:100.0, blend mode:normal}
> if mode of drop shadow settings is not none then set ¬
> mode of drop shadow settings to none
> if mode of feather settings is not none then set ¬
> mode of feather settings to none
> if applied of inner shadow settings is not false then set ¬
> applied of inner shadow settings to false
> if applied of outer glow settings is not false then set ¬
> applied of outer glow settings to false
> if applied of inner glow settings is not false then set ¬
> applied of inner glow settings to false
> if applied of bevel and emboss settings is not false then set ¬
> applied of bevel and emboss settings to false
> if applied of satin settings is not false then set ¬
> applied of satin settings to false
> if applied of directional feather settings is not false then set ¬
> applied of directional feather settings to false
> if applied of gradient feather settings is not false then set ¬
> applied of gradient feather settings to false
> end tell
> end repeat
> end if -- if vNoTransparency is false
> end tell
> end repeat
> --return vResultList
> end tell
> end tell
>
> ------------------
>
> On 4/2/12 at 6:33 PM -0400, Houston, Brad wrote in a message entitled
> "InDesign CS5.1 object styles":
>
>> Greetings wise ones,
>>
>> Stuck and going around in circles. Hopefully someone knows where the exit
>> is.
>>
>> Trying to set up object styles (in InDesign CS5.1) via applescript and can't
>> figure out how to enable, and consequently set properties for, object
>> effects; such as a drop shadow. Everything I try results in either the
>> ubiquitous "Can't set . . ." or else nothing happens (executes without
>> apparent effect). When nothing seems to happen but I then query, via
>> applescript, for the property value, it's changed. But where?
>>
>> Any suggestions would be appreciated.
>>
>> Brad
>>
>>
>> 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, review and process the content of any electronic message or information sent to or from McGraw-Hill e-mail addresses without informing the sender or recipient of the message. By sending electronic message or information to McGraw-Hill e-mail addresses you, as the sender, are consenting to McGraw-Hill processing any of your personal data therein.
>>
>> _______________________________________________
>> 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
>
>
> --
> ___________________________________________________
>
> RICK GORDON
> EMERALD VALLEY GRAPHICS AND CONSULTING
> ___________________________________________________
>
> WWW: http://www.shelterpub.com
>
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 06 Apr 2012 17:52:08 -0700
> From: Rick Gordon <email@hidden>
> To: email@hidden
> Subject: RE: InDesign CS5.1 object styles
> Message-ID: <p0624080fcba534bf873c@[192.168.1.69]>
> Content-Type: text/plain; charset=iso-8859-1
>
> Those question marks were misencodings of the not-equals symbol.
>
> ------------------
>
> On 4/6/12 at 4:54 PM -0700, Rick Gordon wrote in a message entitled
> "Re: InDesign CS5.1 object styles":
>
>> See if some of the code below helps:
>>
>> ----------
>>
>> property pLiveLayerName : "FLO_LIVE_TEXT"
>> property pImageLayerName : "User Graphics Layer"
>>
>> set vTextFrameList to {}
>> set vResultList to {}
>> tell application "Adobe InDesign CS5.5"
>> set vApp to it
>> tell active document
>> set vDoc to it
>> set vLiveTextLayer to layer pLiveLayerName
>> set vImageLayer to layer pImageLayerName
>> set vNoneSwatch to swatch "None"
>> set vTextFrameList to items of (all page items of vLiveTextLayer) where (class is text frame)
>> --set vTextFrameList to items of (selection as list)
>> repeat with vEachItem in vTextFrameList
>> tell vEachItem
>> set vTransparency to transparency settings
>> set vContentTransparency to content transparency settings
>> set vFillTransparency to fill transparency settings
>> set vStrokeTransparency to stroke transparency settings
>> set vNoTransparency to true
>> set vResetList to {}
>> tell vTransparency
>> if (opacity of blending settings ? 100.0) or (blend mode of blending settings is not normal) or (mode of drop shadow settings is not none) or (mode of feather settings is not none) or (applied of inner shadow settings is true) or (applied of outer glow settings is true) and (applied of inner glow settings is true) or (applied of bevel and emboss settings is true) or (applied of satin settings is true) or (applied of directional feather settings is true) or (applied of gradient feather settings is true) then
>> set vNoTransparency to false
>> set end of vResetList to vTransparency
>> end if
>> end tell --vTransparency
>> tell vContentTransparency
>> if (opacity of blending settings ? 100.0) or (blend mode of blending settings is not normal) or (mode of drop shadow settings is not none) or (mode of feather settings is not none) or (applied of inner shadow settings is true) or (applied of outer glow settings is true) and (applied of inner glow settings is true) or (applied of bevel and emboss settings is true) or (applied of satin settings is true) or (applied of directional feather settings is true) or (applied of gradient feather settings is true) then
>> set vNoTransparency to false
>> set end of vResetList to vContentTransparency
>> end if
>> end tell --vContentTransparency
>> tell vFillTransparency
>> if (opacity of blending settings ? 100.0) or (blend mode of blending settings is not normal) or (mode of drop shadow settings is not none) or (mode of feather settings is not none) or (applied of inner shadow settings is true) or (applied of outer glow settings is true) and (applied of inner glow settings is true) or (applied of bevel and emboss settings is true) or (applied of satin settings is true) or (applied of directional feather settings is true) or (applied of gradient feather settings is true) then
>> set vNoTransparency to false
>> set end of vResetList to vFillTransparency
>> end if
>> end tell --vFillTransparency
>> tell vStrokeTransparency
>> if (opacity of blending settings ? 100.0) or (blend mode of blending settings is not normal) or (mode of drop shadow settings is not none) or (mode of feather settings is not none) or (applied of inner shadow settings is true) or (applied of outer glow settings is true) and (applied of inner glow settings is true) or (applied of bevel and emboss settings is true) or (applied of satin settings is true) or (applied of directional feather settings is true) or (applied of gradient feather settings is true) then
>> set vNoTransparency to false
>> set end of vResetList to vStrokeTransparency
>> end if
>> end tell --vStrokeTransparency
>> if vNoTransparency is false then
>> set vCurrentPage to parent page
>> set end of vResultList to name of vCurrentPage
>> copy properties to vProperties
>> set vGraphicsFrame to duplicate it
>> set contents of parent story of vGraphicsFrame to ""
>> set properties of vGraphicsFrame to {item layer:vImageLayer, content type:unassigned}
>> set properties to {fill color:vNoneSwatch, stroke color:vNoneSwatch}
>> repeat with vItem in vResetList
>> tell vItem
>> if properties of blending settings is not {opacity:100.0, blend mode:normal} then set ¬
>> properties of blending settings to {opacity:100.0, blend mode:normal}
>> if mode of drop shadow settings is not none then set ¬
>> mode of drop shadow settings to none
>> if mode of feather settings is not none then set ¬
>> mode of feather settings to none
>> if applied of inner shadow settings is not false then set ¬
>> applied of inner shadow settings to false
>> if applied of outer glow settings is not false then set ¬
>> applied of outer glow settings to false
>> if applied of inner glow settings is not false then set ¬
>> applied of inner glow settings to false
>> if applied of bevel and emboss settings is not false then set ¬
>> applied of bevel and emboss settings to false
>> if applied of satin settings is not false then set ¬
>> applied of satin settings to false
>> if applied of directional feather settings is not false then set ¬
>> applied of directional feather settings to false
>> if applied of gradient feather settings is not false then set ¬
>> applied of gradient feather settings to false
>> end tell
>> end repeat
>> end if -- if vNoTransparency is false
>> end tell
>> end repeat
>> --return vResultList
>> end tell
>> end tell
>>
>> ------------------
>>
>> On 4/2/12 at 6:33 PM -0400, Houston, Brad wrote in a message entitled
>> "InDesign CS5.1 object styles":
>>
>>> Greetings wise ones,
>>>
>>> Stuck and going around in circles. Hopefully someone knows where the exit
>>> is.
>>>
>>> Trying to set up object styles (in InDesign CS5.1) via applescript and can't
>>> figure out how to enable, and consequently set properties for, object
>>> effects; such as a drop shadow. Everything I try results in either the
>>> ubiquitous "Can't set . . ." or else nothing happens (executes without
>>> apparent effect). When nothing seems to happen but I then query, via
>>> applescript, for the property value, it's changed. But where?
>>>
>>> Any suggestions would be appreciated.
>>>
>>> Brad
>>>
>>>
>>> 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, review and process the content of any electronic message or information sent to or from McGraw-Hill e-mail addresses without informing the sender or recipient of the message. By sending electronic message or information to McGraw-Hill e-mail addresses you, as the sender, are consenting to McGraw-Hill processing any of your personal data therein.
>>>
>>> _______________________________________________
>>> 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
>>
>>
>> --
>> ___________________________________________________
>>
>> RICK GORDON
>> EMERALD VALLEY GRAPHICS AND CONSULTING
>> ___________________________________________________
>>
>> WWW: http://www.shelterpub.com
>>
>> _______________________________________________
>> 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
>
>
> --
> ___________________________________________________
>
> RICK GORDON
> EMERALD VALLEY GRAPHICS AND CONSULTING
> ___________________________________________________
>
> WWW: http://www.shelterpub.com
>
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 06 Apr 2012 22:50:17 -0500
> From: Christopher Stone <email@hidden>
> To: Applescript Users List <email@hidden>
> Subject: Re: Folder actions questions - PAGE 2
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="windows-1252"
>
> On Apr 06, 2012, at 17:26, Robert Poland wrote:
>> If I go to a folder and select at Services/Folder Actions Setup… then click on the plus (+) sign GraphicConverter opens???
>>
>> Looks like a GC bug.
> ______________________________________________________________________
>
> Hey Bob,
>
> It seems more likely that this is a system-level bug rather than a problem with GraphicConverter.
>
> After zipping GC-8 and reinstalling GC-7.x the issue fails to occur, so this may indeed be an issue with GC-8 — but I don't see a good way to trace it.
>
> Here's my methodology starting with GC-8 installed.
>
> I tried opening the Folder-Actions-Setup using the service on a folder in the Finder, and sure enough GraphicConverter fired up. Clicking 'Enable/Disable Folder Actions' restarted GC every time.
>
> The attach folder actions pop-up did NOT show up on the first run.
>
> So I zipped GC-8 and tried again.
>
> This time when I tried turning Folder Actions ON I got:
>
>
>
> Which did in fact have an action attached: 'Test_Folder_Actions.scpt'
>
> The 'gc' folder no longer existed on the system, but it would seem that I had not deleted it from Folder Actions. 'gc' obviously had something to do with GraphicConverter, but it's been too long for me to remember what.
>
> I deleted the 'gc' action - unzipped GC-8 - and on the next run I got the expected dialog.
>
>
>
> However after launching and quitting GC-8 and trying again to attach a folder-action in the Finder GC-8 launched, and the pop-up part of the dialog was a no-show again.
>
> I am mystified.
>
> --
> Best Regards,
> Chris
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.apple.com/mailman/private/applescript-users/attachments/20120406/da88bbfe/attachment.html>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: Screen Shot 2012-04-06 at 19.35.40.jpeg
> Type: image/jpg
> Size: 13984 bytes
> Desc: not available
> URL: <https://lists.apple.com/mailman/private/applescript-users/attachments/20120406/da88bbfe/attachment.jpg>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: Screen Shot 2012-04-06 at 22.41.24.jpeg
> Type: image/jpg
> Size: 27891 bytes
> Desc: not available
> URL: <https://lists.apple.com/mailman/private/applescript-users/attachments/20120406/da88bbfe/attachment-0001.jpg>
>
> ------------------------------
>
> _______________________________________________
> AppleScript-Users mailing list
> email@hidden
> https://lists.apple.com/mailman/listinfo/applescript-users
>
> End of AppleScript-Users Digest, Vol 9, Issue 147
> *************************************************
_______________________________________________
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