Re: Trying to move away from Finder...
Re: Trying to move away from Finder...
- Subject: Re: Trying to move away from Finder...
- From: Shane Stanley <email@hidden>
- Date: Wed, 1 Nov 2017 22:56:31 +1100
On 1 Nov 2017, at 10:48 pm, Jean-Christophe Helary
<email@hidden> wrote:
>
> I'm slowly trying to move away from Finder but I have problems finding
> equivalents for trivial things that I'm doing, like:
>
> tell application "Finder" to set default_location to (target of front window)
> as alias
If you're scripting something that's the Finder's — and in this case really
only the Finder's — business (that is, the Finder's front window), then there's
no alternative. That's the stuff that makes sense to do via Finder scripting,
because nothing else has such access to the Finder's state.
>
> or
>
> tell application "Finder" to set originals_folder to (folder "originaux" of
> project_folder)
Without knowing what project_folder is and what you intend to do with
originals_folder, that's a bit hard to answer.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.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