• 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: AS101: scripts for distribution - various Qs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS101: scripts for distribution - various Qs


  • Subject: Re: AS101: scripts for distribution - various Qs
  • From: JollyRoger <email@hidden>
  • Date: Fri, 18 Jan 2002 06:49:23 -0600

On 1/17/2002 9:59 PM, "SeaJay" <email@hidden> wrote:

> I'm working on a small script for public distribution.
> The script acts on the filesystem - some 'duplicates'
> and 'moves'. It targets specific system files (their
> paths are known).
>
> How do I ensure the paths I set don't break? Is there
> a wildcard in AS at all? Something like UNIX?
> /dirname/*/dirname/*/filename

That depends on what files/folders the paths point to. Can you be more
specific?

> Or do I have to make the app get the 'home' property
> for "Finder" and pass the values to a variable and
> then use the variable in my paths?

If by "home property" you mean the name of the startup volume, then yes,
that may be a good starting point, depending on what you are doing. We
really need more information about what you are trying to do to help you
though.

> (christ, AS doesn't do anything the easy way) =)

I think you'll find there are a lot of features in AppleScript that do
things in an easy manner. But you have to take the good with the bad.

JR


References: 
 >AS101: scripts for distribution - various Qs (From: SeaJay <email@hidden>)

  • Prev by Date: Re: AppleScript 101 - concise paths or always Biblical?
  • Next by Date: Re: including script in DVD root level
  • Previous by thread: AS101: scripts for distribution - various Qs
  • Next by thread: Forcing droplet to launch QT for OS X?
  • Index(es):
    • Date
    • Thread