• 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: Works in 9.2.2 and client10.2.2 but not server 10.2.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Works in 9.2.2 and client10.2.2 but not server 10.2.3


  • Subject: Re: Works in 9.2.2 and client10.2.2 but not server 10.2.3
  • From: Axel Luttgens <email@hidden>
  • Date: Sat, 04 Jan 2003 21:43:50 +0100

Tim Kendall wrote:

I got the script to work when I use the startup disk(the 1st partition of
the internal drive) or another separate disk like an external Firewire
drive.


Even if you call the external drive, say, "FLUFFY5" ?

The internal 80 gig drive has three partition on it, and the script
would fail when ever I would try to reference the second and third
partitions using the disk command like this:

property localDrive : "FLUFFY2"--> This being the name of the third
Partition

set aFolderToWatch to folder FTP_Up_Folder of folder fileTransFldr of disk
localDrive

This would return this;
get disk "FLUFFY2"
--> startup disk


This really makes me reminiscent of that old problem with AppleScript when several volumes bearing the same name are mounted.

But I must really be stupid (please don't abruptly agree), because I still feel unconfident with your description.

So, your server's internal drive has three partitions:

partition 1: "FLUFFY=" (used as startup disk)
partition 2: "someName"
partition 3: "FLUFFY2"

Is first partition's name really "FLUFFY=", with an ending equal sign?
Or is that equal sign an artifact of the list server?

And what's the name of partition 2?

( Incidentally, do your TiBook and QuickSilver also have partitioned internal drives?
With similar naming schemes? )


--- This works
property localDrive : "FLUFFY=" --> This being the name of the startup
Partition
set aFolderToWatch to folder FTP_Up_Folder of folder fileTransFldr of disk
localDrive

If I set it to this;
set aFolderToWatch to folder FTP_Up_Folder of folder fileTransFldr of folder
localDrive

I would get the correct disk but the rest of my script would start breaking.


In what sense? Does the rest of the script again refer to the startup disk?


So as long as I do not try to reference a partition as a disk I will be OK.


Seems a bit contradictory with your preceeding statement.
Unless you just mean here that
get folder "FLUFFY2"
yields the correct disk, while
get folder fileTransFldr of folder "FLUFFY2"
again refers the startup disk?

Perhaps could you, in order to allow me to fully understand, write a minimal script that shows the surprising result, and post it along with its log?



Thanks
Tim




On 1/3/03 10:27 AM, "Axel Luttgens" <email@hidden> wrote:


Tim Kendall wrote:


I have a script that works great in on my TiBook (9.2.2) and my Quicksilver
(10.2.x) at home. But it breaks completely on our OS10.2.3 server.

Any suggestions ?

[snip: script + log]




I am not sure to have fully understood your question.
So, before going further, do you mean that if you run something like
this on your server:

property localDrive : "FLUFFY2"
tell application "Finder"
disk localDrive
folder localDrive
end tell

your log looks like:

tell application "Finder"
get disk "FLUFFY2"
--> startup disk
get folder "FLUFFY2"
--> disk "FLUFFY2"
end tell

?

And, in the meantime, coud you run a script in the line of:

tell application "Finder" to
get every folder whose name is "FLUFFY2"

?

Axel


-- Tim --
_______________________________________________
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.

References: 
 >Re: Works in 9.2.2 and client10.2.2 but not server 10.2.3 (From: "Tim Kendall" <email@hidden>)

  • Prev by Date: Re: Finder window help...
  • Next by Date: Re: GUI scripting
  • Previous by thread: Re: Works in 9.2.2 and client10.2.2 but not server 10.2.3
  • Next by thread: Re: Any luck with remote AppleScripts?
  • Index(es):
    • Date
    • Thread