Re: GraphicConverter scripting help
Re: GraphicConverter scripting help
- Subject: Re: GraphicConverter scripting help
- From: Johnny AppleScript <email@hidden>
- Date: Fri, 24 Sep 2004 18:38:08 -0600
Title: Re: GraphicConverter scripting help
How about this?
tell application "Finder" to set thePath to container of (path to frontmost application) as text
BTW, watch those forward-slash (/) characters in filenames; technically safe when done in Finder, but they are equivalent of a directory shift in *NIX. Best to just avoid them and use dashes or underscores, etc.; colons are a non-no, too.
HTH
JA
On 04/09/24 6:26 PM, "Russell McGaha" <email@hidden> wrote:
> Folks;
> I've about got it working; I now need some help setting a path. With the
> following:
>
> set theFilename to "BHC-Pics/BPT20-112D.tiff"
> tell application "GraphicConverter"
> activate
> set thePath to path to frontmost application as text
> set thePath to thePath & "BHC-Pics"
> new image from clipboard
> save window 1 in(thePath & theFilename) as TIFF
> close window 1
> end tell
>
> How do I get just the path TO the current application, without including the
> application?
> here's what I get now:
> "Russell's TiBook:Applications:GraphicConverter
> US:GraphicConverter.appBHC-Pics:BPT20-112D.tiff"
> here's what I want to get:
> "Russell's TiBook:Applications:GraphicConverter US:BHC-Pics:BPT20-112D.tiff"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden