• 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
Fwd: Obtaining the name of a "dropped" folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Obtaining the name of a "dropped" folder


  • Subject: Fwd: Obtaining the name of a "dropped" folder
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 11 Apr 2002 10:37:31 -0700

Begin forwarded message:

From: Michelle Steiner <email@hidden>
Date: Thu Apr 11, 2002 07:59:37 AM America/Phoenix
To: Chad Chelius <email@hidden>
Subject: Re: Obtaining the name of a "dropped" folder

Here ya go.

on open {ThisFolder}
display dialog "Please enter a new name for your page" default answer ""
set NewName to text returned of the result
try
tell application "Finder"
set OldFilename to name of ThisFolder
set the name of ThisFolder to NewName
end tell
on error ConvertERR
display dialog ConvertERR
end try
end open

Note that I used braces instead of parens in the "on open" line. On open returns a list; by using braces, the script automatically extracts the first item from the list. If you are going to drop more than one folder at a time, then use parens and a loop.

I removed "set ThisFolder to ThisFolder as alias" because it was not needed.
I moved "set OldFilename to name of ThisFolder" to inside the tell wrapper
I changed "RampageFolder" to "ThisFolder" because there was no RampageFolder defined in the script.

--Michelle


On Thursday, April 11, 2002, at 04:05 AM, Chad Chelius wrote:

Below is the script that I have written
so far but the set OldFilename line doesn't work.
We're not human beings having a spiritual experience.
We're spiritual beings having a human experience.


We're not human beings having a spiritual experience.
We're spiritual beings having a human experience.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: InDesign Scripting
  • Next by Date: Re: ACGI & OSX - pages greater then 32k???
  • Previous by thread: Fwd: Obtaining the name of a "dropped" folder
  • Next by thread: opening a .app bundle
  • Index(es):
    • Date
    • Thread