• 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: Script to Open Camera RAW File Doesn't Open File, Gives No Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script to Open Camera RAW File Doesn't Open File, Gives No Error


  • Subject: Re: Script to Open Camera RAW File Doesn't Open File, Gives No Error
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 24 May 2016 09:29:47 +1000

On 24 May 2016, at 3:53 AM, Rick Gordon <email@hidden> wrote:

Shane, I was aware of your general dictate to avoid the Finder, but when I tried it with System Events, it was erroring on the getting the container, and it didn't when I targeted Finder, so I was just going for what worked (up to that point, ant any rate).

I was really trying to make the point Chris alluded to: manipulating a file path doesn't need *any* app. For a non-ASObjC example:

set vImagePath to vImageAlias as text
set saveTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to {":"}
set vImageFullName to text item -1 of vImagePath
if (offset of "." in vImageFullName) > 0 then
set AppleScript's text item delimiters to {"."}
set vImagePath to text 1 thru text item -2 of vImagePath
end if
set AppleScript's text item delimiters to saveTID
set fileFound to false
repeat with anExt in vExtensionList
try
set theAlias to (vImagePath & anExt) as alias
set fileFound to true
exit repeat
end try
end repeat

if fileFound then
tell application "Adobe Photoshop CC 2015"
open theAlias as Camera RAW
activate
end tell
end if

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: Script to Open Camera RAW File Doesn't Open File, Gives No Error
      • From: Rick Gordon <email@hidden>
References: 
 >Script to Open Camera RAW File Doesn't Open File, Gives No Error (From: Rick Gordon <email@hidden>)
 >Re: Script to Open Camera RAW File Doesn't Open File, Gives No Error (From: Rick Gordon <email@hidden>)
 >Re: Script to Open Camera RAW File Doesn't Open File, Gives No Error (From: Shane Stanley <email@hidden>)
 >Re: Script to Open Camera RAW File Doesn't Open File, Gives No Error (From: Rick Gordon <email@hidden>)

  • Prev by Date: Re: Reload Library?
  • Next by Date: Re: Script to Open Camera RAW File Doesn't Open File, Gives No Error
  • Previous by thread: Re: Script to Open Camera RAW File Doesn't Open File, Gives No Error
  • Next by thread: Re: Script to Open Camera RAW File Doesn't Open File, Gives No Error
  • Index(es):
    • Date
    • Thread