Select by Note using Applescript
I want to know if it's possible using Applescript to select items based on the contents of the Note field of the Attibutes Panel. It's used to select objects within Actions, so it seems like it should be possible.
Unfortunately I'm not very good at scripting and can't seem to figure out the right syntax.
Thanks in advance for any ideas or suggestions...
Mike D.
Hey, Mike:
Yes, it's possible to select an item based on the contents of its Note.
every page item whose note contains "testing" -- This would return a list of page items who has "testing" in the note. This includes an item with the word "retesting" so remember to be specific. These are only computers after all… they're not very smart! ;^)
This is doable but remember you can name any and all items on a page and select them based on that parameter. Unless you have a particular reason to use the Note property I would use Name but either way can be worked out.
Cheers,
storm371
Similar Messages
-
Why my select is not using the index
This is my index
CREATE INDEX CONFIG_STATE_IDX ON IDENTIFIER
(CONFIGURATION_ID, STATE)
LOGGING
TABLESPACE NII_INDEX
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL DEFAULT
NOPARALLEL;
This is my select statement:
SELECT *
FROM identifier i
WHERE
i.configuration_id = '89afead40a0c0b8d00628c59aa405ea4'
AND i.state = 'QT'
AND ROWNUM <6
This is my exmplain plan result
Operation Object Name Rows Bytes Cost Object Node In/Out PStart PStop
SELECT STATEMENT Hint=CHOOSE 5 2128
COUNT STOPKEY
TABLE ACCESS FULL IDENTIFIER 133 K 19 M 2128
Why it is not using the index on configuration_id and state.Possibility one: you didn't do an analyze statistics on the table and/or the index after index creation.
Possibility two: The optimizer has determined that it can return the query result set with fewer I/Os if it does a FTS vs using the index (the optimizer is very keen on I/Os). -
Time Machine backup disk - accidentally selected Do Not Use
I had an issue I was trying to correct- I selected the backup volume, to which I had previously backed up to, and choose "Do Not Use."
Now, when I choose the "browse other backups" option from the Time Machine menu, it does not show the original back up volume at all.
I deleted the Time Machine plist file - but, the volume is still not showing up. It is a TM volume - etc.
Does anyone know where that excluded volume information may be stored?SOLVED:
I tried a number of things based on various posts. This is what worked for me:
On the iMac with the attached TM volume:
Added the Time Machine volume as a shared folder in System Preferences - Sharing
Changed permissions for Everyone to Read/Write - I think this would have worked by itself
On the Macbook Air (whose drive I back up):
Mounted the Time Machine via the Finder prior to attempting to select it (Note: I did not force mounting via “Connect to Server” - although I can)
Selected the Time Machine volume from the TM preferences pane
Backup is working very well - and very fast. What I don’t know how to determine - which protocol is being used between the Air and iMac. It may be the new SMB version - it is unusually fast.
Setup:
TM Volume is on a new iMac running Mavericks 10.9.1
On the iMac - File Sharing is turned on in System Prefs
The iMac Sharing Options only has AFP checked - SMB is not checked - however, it shows one user connected - and one is connected under AFP
The TM Volume is on on an attached Firewire Seagate 3 TB drive - connected via a Thunderbolt firewire adapter - and is daisy changed - it is the second drive - the first is a Seagate too
The iMac host is connected via Ethernet to a central router
The Mac Air is connected via Wifi to an Airport Extreme - which is connected to the central router
The Mac Air is running 10.9.1
Prior to the TM volume not showing up - this setup worked, at least once, after I updated both systems to 10.9.1
What had no impact on the solution:
Changing the iMac Computer Name to pure alphanumeric - no spaces - no special characters, etc.
Mounting the TM Volume via Connect to Server
The TM volume was already formatted per requirements - no changes made -
Can select but not use iPhone 4 WiFi in iOS 4.3.4 & 4.3.5
After I updated my iPhone 4 to iOS 4.3.4, I could select my WiFi-connection, but it would refuse to use it. The 3G or circle-icon showed instead of WiFi. In the settings, my home WiFi is slected, but it is not used. The 3G keeps showing instead. I tested it using YouTube and the browser and the speed is indeed 3G speed. I upgraded to 4.3.5: still the same problem.
I went to the settings, chose to ignore my WiFi network. I then re-scanned, chose my WiFi, just to refresh everything. It still didn't work. I restarted my phone, which also didn't solve the problem. Whenever I go to the settings, it shows the selection of my WiFi with the checkmark on the left as if I am actually using it, but it doesn't.If you update to iOS 4.3.4 or iOS 4.3.5, you will need to power-off your WiFi-router, wait a couple of seconds and power it back on. Then, your WiFi-connection will work with the iPhone 4. If you don't do that, you will not be able to use WiFi on the iPhone 4.
Rebooting the iPhone or re-selecting the WiFi-router (even after deleting the connection) will not get the job done. Only by powering off/on your router. Now, it works again. -
Trouble selecting menu item using AppleScript
Now that iWork Numbers 3.2 has added the ability to hide columns and rows via the menubar, I'm trying to make it work in an Applescript using system Events and the click menu item command, but no dice. Any ideas?
tell application id "com.apple.iWork.Numbers"
activate
tell table 1 of the active sheet of document 1
--select the range
set thisRangeName to "A:B"
set the selection range to range thisRangeName
--hide the cells
tell application "System Events"
tell application process "Numbers"
--this causes an error
click menu item "Hide 2 Columns" of menu 1 of menu bar item "Table" of menu bar 1
--this doesn't seem to do anything
click menu item 18 of menu 1 of menu bar item "Table" of menu bar 1
end tell
end tell
end tell
end tellI finally settled on this solution:
tell application id "com.apple.iWork.Numbers"
activate
tell table 1 of the active sheet of document 1
set thisRangeName to "A:B"
set the selection range to range thisRangeName
end tell
end tell
tell application "System Events" to tell process "Numbers"
click menu bar item "Table" of menu bar 1
keystroke "Hi"
delay 0.5
keystroke return
end tell
I would be curious to know if anyone has found a more elegant solution. -
Hi,
I have a Z-Table. The Primary key is:
EQUNR and LFDNR
I created now a new index with the field: EQUNR BSTNK .
Now I entered 3 equnrs and bstnk like 07* in SE16n
Normally what I thought should happen is that it uses the index to read the three equipments and than checks the field bstnk.
Instead it does a sequentiel read of the hole table that contains 12mio entries!
When I enter the bstnk more qualified like 0712354* the search is fast (1sec). Why is SAP bypassing the index and does a sequentiel read instead?!Hi I checked,
ST05 the fast run was using an Index, the second didn't!
Thanks to John. After I started a runstat on this table it worked.
But the weird thing is when I use a inner join between my Z-Table and the EQUI table it doesn't use the index.
When I first select all equnrs in EQUI and then select the data from my z-Table with for all entries it uses my new index!
Example:
EQUNR has Index on field SERNR
Z-Table has Index on EQUNR + BSTNK
in sernrs I have ~5 full qualified sernos
in bstnk I have something like 07*
3 of these serialnumbers are in a bstnk that begins with 07.
select *
into corresponding fields of table search_result
from equi as a
inner join z-table as b on b~equnr = a~equnr
where a~sernr in sernrs
and b~bstnk in bstnks
After 5 min I have to kill the process. in SM50 I can see sequential read...
When I do this:
select equnr
from equi
into corresponding fields of table lt_search_result
where sernr in sernrs.
select *
from z_table
into corresponding fields of table lt_search_result
for all entries in lt_search_result
where equnr = lt_search_result-equnr
and bstnk in bstnks.
It takes 2sec and I got the result.
Edited by: Daniel Winter on Apr 21, 2010 8:51 AM
Edited by: Daniel Winter on Apr 21, 2010 8:51 AM -
Index not using in select query
Hello All,
I have table CITY with 2 composite primary key CITYCODE, COUNTRYCODE of course they are NOT NULL.
i created an index.
CREATE UNIQUE INDEX CITYKEY ON CITY (CITYCODE, COUNTRYCODE);
then i run explain plan as follows
explain plan for
select CityCode, CityName, CountryCode, LexiconId, UserId, Status
from City
where CountryCode = 'IR';
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 803 | 57013 | 112 (2)| 00:00:02 |
|* 1 | TABLE ACCESS FULL| CITY | 803 | 57013 | 112 (2)| 00:00:02 |
later i analyze table rebuild indexes but again explain plan gives me the same result.
Could any 1 please guide me to solve this issue.
Thanks
Edited by: mohsin javed on Feb 17, 2011 10:10 AMHello All,
Again with one more query which having join:
table SDNMASTER with sdnid pk and SDNMASTER_PK index on SDNID, table SDNALIAS sdnid pk and SDNALIAS_PK index on SDNID.
explain plan for
SELECT a.SourceId,
a.SourceName,
b.LastName,
a.Status
FROM SdnMaster a,
SdnAlias b
WHERE a.SdnId = b.SdnId
AND a.Status in ('1', '3')
AND b.LastName is not null
ORDER BY b.LastName;
PLAN_TABLE_OUTPUT
Plan hash value: 1153036645
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 2399 | 64773 | 69 (5)| 00:00:01 |
| 1 | SORT ORDER BY | | 2399 | 64773 | 69 (5)| 00:00:01 |
|* 2 | HASH JOIN | | 2399 | 64773 | 68 (3)| 00:00:01 |
|* 3 | TABLE ACCESS FULL| SDNALIAS | 2399 | 21591 | 11 (0)| 00:00:01 |
|* 4 | TABLE ACCESS FULL| SDNMASTER | 4562 | 82116 | 56 (2)| 00:00:01 |
Even after analyzing table and rebuilding index its not using the index..
Thanks -
My table of contents does not use the entry style I select for words in the paragraph that have character styles applied to them in the chapter, so some of the letters, specifically parameters, are showing up green, which is fine in the chapter but not in the TOC. I can manually fix this in the TOC by changing the character style to none after the toc has been generated, but I don't want to do this.
What application are you running? Please ask this in the forum of the product you're using.
-
When I reboot my iMac I'll get hard disk selection instead of fast login and I am not using boot camp! Any help is greatly appriciated!
Have you selected which disk you want to boot from? In System Preferences, click startup disk and choose the drive you want as your default boot drive.
-
Phone : IPhone 6
OS : 8.1
Problem Statement : Multiple Selection of Recipients while drafting New Message in SMS.
Expected Solution : Checkbox should have been provided to select multiple contacts using one screenThanks for the reply.. I also tried that way.. I face couple of issues
1) I could not find an option of saving a Draft Message
2) After multiple recipients(I have selected 12 recipients) in "TO" section, if I type a word in "TO" such as "Pre", it shows me all the contacts containing "Pre" but I cannot select the last contact incase there are more than 20 contacts coz I am unable to scroll down till the end.. If I do so.. I cannot select coz screen scrolls up automatically..
Pls try ... If required I will insert video -
have a question I do not use mail in my computer I use yahoo and I have all these emails and selected all and then delete then delete trash and they always come back how do I stop these old email in apple mail? I never send anything from there but I have the same email in yahoo but delete them and they still show up in apple mail from day one how do I get rid of these once and for all.Please help
<Edited by Host>I am soooooooooooo confused now. Ok, if you are having problems with Yahoo Mail and Gmail but you do not use Apple's Mail you need to do the following:
1 - Post in Yahoo's Mail forums and/or contact their tech support.
2 - Post in Gmails forums and/or contact their tech support.
Neither of the above are Apple's products. -
Bind variables are not used in select statement
Hello all of you,
I have two parameters in Report 6i.
1) Department
2) Section
There are many section in a single department. Both parameters are selected from list. The list for department name is as follows -
select deptname from department_master order by deptname
It works very well. The value is stored in :p_dept_name.
I want to display section of selected department only using following code :-
select sectname from section_master a, department_master b where a.deptcode = b.deptcode and b.deptname = :p_dept_name
The value is stored in :p_sect_name.
But it does not work. bind variables are not allowed in select statement, then how can I do this???
Please suggest me.
Thanx,
Regards,Vikas,
the forum is full of threads about that.
Dependent Parameters in Reports are possible out-of-the-box in Reports.
If you're running your report on the web, have a look at Metalink Note:185951.1
Regards
Rainer -
If I do NOT use any event, except AT SELECTION SCREEN, Do I get any issues?
Hi Experts,
Pls. let me know that, If I do NOT use any event, except AT SELECTION SCREEN, Do I/prog. get any issues? (am also using AT SELECTION SCREEN OUTPUT for list box preperation).
For some reason(execution of the report prog. with ENTER button), am using ONLY these 2 events.
For full detials, pls. see my other thread with title,
Is it possible to execute a REPORT prog. with pressing of ENTER button?
thanqHi
srinivas see this program
i am executing this program with out any event it is not showing any error but not giving output
when i put start-of-selection then it is showing output
*& Report ZNNR_REPORT33
REPORT ZNNR_REPORT33 NO STANDARD PAGE HEADING MESSAGE-ID ZNNR LINE-SIZE 100 LINE-COUNT 65(4).
******DATA DECLARATIONS**********
DATA : BEGIN OF IT_PLANT OCCURS 0,
MATNR LIKE MARA-MATNR,
WERKS LIKE MARC-WERKS,
PSTAT LIKE MARC-PSTAT,
EKGRP LIKE MARC-EKGRP,
END OF IT_PLANT.
DATA : BEGIN OF IT_PONO OCCURS 0,
EBELN LIKE EKKO-EBELN,
EBELP LIKE EKPO-EBELP,
MATNR LIKE EKPO-MATNR,
WERKS LIKE EKPO-WERKS,
LGORT LIKE EKPO-LGORT,
END OF IT_PONO.
TABLES EKKO.
********END OF DATA DECLARATIONS*********
********SELECTION SCREEN DESIGN ***********
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.
SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X' user-command uc1.
SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R2 RADIOBUTTON GROUP G1.
SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B2.
******END OF SELECTION SCREEN DESIGN****************
***********SCREEN MODIFICATIONS*******************
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF R1 EQ 'X' AND SCREEN-GROUP1 EQ 'S2'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
IF R2 EQ 'X' AND SCREEN-GROUP1 EQ 'S1'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
********END OF SCREEN MODIFICATIONS*****************
***************SCREEN VALIDATIONS *****************
at selection-screen.
SELECT SINGLE *
FROM EKKO
INTO EKKO
WHERE EBELN IN S_EBELN.
IF SY-SUBRC <> 0.
SET CURSOR FIELD 'S_EBELN-LOW'.
MESSAGE E999 WITH TEXT-005.
clear S_ebeln-low.
ENDIF.
********end of screen validation*****************
IF R1 EQ 'X'.
*ULINE AT /1(48).
WRITE : SY-VLINE ,2 'MATERIAL NUMBER',
21 SY-VLINE , 22 'PLANT',
27 SY-VLINE , 28 'STATUS',
43 SY-VLINE , 44 'GRUP', 48 SY-VLINE.
ULINE AT /1(48).
ENDIF.
IF R2 EQ 'X'.
WRITE : SY-VLINE , 2 'PO NUMBER',
12 SY-VLINE, 13 'ITEM',
18 SY-VLINE,19 'MATERIAL NUMBER',
37 SY-VLINE, 38 'PLANT',
44 SY-VLINE, 45 'GRUP',
49 SY-VLINE.
ULINE AT /1(50).
ENDIF.
start-of-selection.
*set pf-status '100'.
IF R1 EQ 'X'.
SELECT MATNR
WERKS
PSTAT
EKGRP
FROM MARC
INTO TABLE IT_PLANT
WHERE WERKS = P_WERKS.
LOOP AT IT_PLANT.
WRITE : SY-VLINE , 2 IT_PLANT-MATNR COLOR COL_KEY,
21 SY-VLINE , 22 IT_PLANT-WERKS COLOR COL_KEY,
27 SY-VLINE ,28 IT_PLANT-PSTAT COLOR COL_NORMAL,
43 SY-VLINE ,44 IT_PLANT-EKGRP COLOR COL_NORMAL.
ENDLOOP.
ENDIF.
IF R2 EQ 'X'.
SELECT EBELN EBELP MATNR WERKS LGORT
FROM EKPO
INTO TABLE IT_PONO
WHERE EBELN IN S_EBELN.
LOOP AT IT_PONO.
WRITE : SY-VLINE , 2 IT_PONO-EBELN COLOR COL_KEY,
12 SY-VLINE , 13 IT_PONO-EBELP COLOR COL_KEY,
18 SY-VLINE , 19 IT_PONO-MATNR COLOR COL_NORMAL,
37 SY-VLINE , 38 IT_PONO-WERKS COLOR COL_NORMAL,
44 SY-VLINE , 45 IT_PONO-LGORT COLOR COL_NORMAL, 49 SY-VLINE..
ENDLOOP.
ENDIF.
ULINE AT /1(50).
WRITE :/10 'PAGE NUMBER', SY-PAGNO, '/' ,SY-PAGNO.
ULINE AT /1(50).
WRITE :/10 'PAGE NUMBER', SY-PAGNO. -
Can not use 'AT LINE-SELECTION' with SET PF-STATUS
Hi experts,
my code is like below:
PARAMATERS: .....
SET PF-STATUS 'st_nam'.
Perform Load_data . ' For list display
START-OF-SELECTION.
AT LINE-SELECTION.
Perform list_detail.
AT USER-COMMAND.
CALL SCREEN '1001'.
END-OF-SELECTION.
When I execute the report , the basic was displayed , but when then i double click on the list to call the next screen '1001'. It did not work , but if i omit the SET PF-STATUS m AT LINE-SELECTION worked week , so in this case what has happened i how can i solve this problem,
Thaks,
PS: Reward immediatelyHi,
Thank you very much for your helpful answers, I have copied the report downto my system and test it , When i used SET PF-STATUS , i can not use AT LINE-SELECTION to capture events ...May be we can not use these 2 statements in parallel,...:D
Thanks, -
When I opened the app I selected do not allow, to use my contacts, but now realise I should have allowed it. I have uninstalled and reloaded it, but it will not ask me to use my contacts again. Any ideas as now I see e mail names and not just the persons name.
If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.
Maybe you are looking for
-
While using Pages 08 is there any way to change the color of the comment boxes? I have selected the comment, opened the inspector to the graphic tab, and can see where the fill is listed as gradient with the two colors of yellow, but I cannot select
-
Scripts/multiple queries in one CF Query block in Oracle
Greetings: I am primarily an MS SQL programmer and I am wondering how to run multiple query statements inside a single cfquery block. For example, on MS SQL I can do multiple delete statements, or an update and select within one cfquery block, but I
-
Hello, I am trying to build a query that returns the 3 months of a quarter. Below are the two case statements that I am trying to use. I am getting a "Not a group by expression" in the first case statement, and a "nota a single-group group function i
-
Hello all, I understand that the return process in SD involves creating an RE sales document, inbound delivery, and PGR followed by a Credit Memo. However, let's say that the customer returning the product hasn't yet paid the invoice - in this scena
-
How do you turn on Air Drop on iMac?